nac3_sca/nac3standalone/demo.c

26 lines
400 B
C
Raw Normal View History

2020-11-10 20:39:17 +08:00
// clang -Wall -o demo demo.c test.o
2020-03-30 22:47:45 +08:00
#include <stdio.h>
#include <string.h>
int output(int x) {
static char chars[] = " .,-:;i+hHM$*#@ ";
if(x < 0) {
putchar('\n');
} else {
if(x < strlen(chars)) {
putchar(chars[x]);
} else {
printf("ERROR\n");
}
}
return 0;
}
extern int run();
int main() {
run();
return 0;
}