#include #include int main(int argc, char *argv[]) { int c; int count = 0; if(argc < 2) return EXIT_FAILURE; printf("static const char %s[] = {\n",argv[1]); while((c = getchar()) != EOF){ count += printf("0x%x,",c); if(count > 75){ puts(""); count = 0; } } puts("0x0\n};"); return EXIT_SUCCESS; }