awtk/tools/font_gen/gen_ascii.c
2018-04-13 10:25:58 +08:00

19 lines
332 B
C

#include <stdio.h>
#include <ctype.h>
int main(int argc, char* argv[]) {
unsigned char c = 0;
FILE* fp = fopen("ascii.txt", "wb+");
if (fp != NULL) {
for (c = 0; c < 128; c++) {
if (isprint(c) && !isspace(c)) {
printf("%c", c);
fprintf(fp, "%c", c);
}
}
fclose(fp);
}
return 0;
}