first commit

This commit is contained in:
cozis
2022-05-03 15:22:41 +02:00
commit 6337a7f7ca
5 changed files with 266 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <assert.h>
#include <stdio.h>
#include "c2html.h"
int main(int argc, char **argv)
{
assert(argc > 0);
if(argc < 3) {
fprintf(stderr,
"Missing input ad output files\n"
"\n"
"Usage:\n"
" $ %s input.c output.html\n"
"\n", argv[0]);
return -1;
}
const char *err;
err = c2html(argv[1], argv[2]);
if(err != NULL)
fprintf(stderr, "ERROR: %s\n", err);
fprintf(stderr, "OK");
return err == NULL ? -1 : 0;
}