Added / started some infrastructure / boilerplate code.
This commit is contained in:
+17
-1
@@ -1,5 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include "../includes/futil.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
printf("Hello World\n");
|
||||
char* file;
|
||||
size_t count;
|
||||
|
||||
if (argc <= 1) {
|
||||
printf("Usage: assm <file.asm>\n");
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
if (!ReadAllString(argv[1], &file, &count)) {
|
||||
printf("Failed to read file '%s'.", argv[1]);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf(file);
|
||||
}
|
||||
Reference in New Issue
Block a user