Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/tools/font_gen/gen_ascii.c
刘可亮 3b4064f334 v1.0.2
2023-11-30 19:48:02 +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;
}