2021-12-11 14:26:39 +01:00
|
|
|
#include <stdio.h>
|
2021-12-13 15:47:21 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <gc.h>
|
|
|
|
|
2021-12-11 14:26:39 +01:00
|
|
|
#include "dbg.h"
|
2021-12-13 15:47:21 +01:00
|
|
|
#include "util.h"
|
2021-12-11 14:26:39 +01:00
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
2021-12-13 15:47:21 +01:00
|
|
|
GC_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-11 14:26:39 +01:00
|
|
|
}
|