20 #define myBUFSIZ BUFSIZ
23 int main(
int argc,
char **argv)
32 fprintf(stderr,
"Usage: %s file\n", *argv);
39 if (strcmp(argv[1],
"-") == 0) {
42 else if ((fp = fopen(argv[1],
"r")) == (FILE *) NULL) {
50 if (fgets(str,
sizeof(str), fp) == (
char *) EOF) {
54 if ((cp = strrchr(str,
'\n')) != (
char *) NULL) {
59 printf(
"{%d, \"", len);
60 for (i = 0; i < len; i++) {
61 printf(
"\\%o", str[i] & 0xff);
int main(int argc, char **argv)