secd/src/main.c

29 lines
360 B
C
Raw Normal View History

2021-12-19 12:47:39 +01:00
#include <gc.h>
#include <gmp.h>
2021-12-11 14:26:39 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
2021-12-11 14:26:39 +01:00
#include "dbg.h"
#include "util.h"
2021-12-19 12:47:39 +01:00
#include "gmp_setup.h"
2021-12-11 14:26:39 +01:00
int main(int argc, char** argv) {
GC_INIT();
2021-12-19 12:47:39 +01:00
gmp_init();
if (argc < 2) {
die("Not enough args");
}
size_t size;
uint8_t* buf;
buf = readFile(argv[1], &size);
fwrite(buf, 1, size, stdout);
2021-12-19 12:47:39 +01:00
2021-12-11 14:26:39 +01:00
}