32 #define myBUFSIZ BUFSIZ 35 int main(
int argc,
char **argv)
44 fprintf(stderr,
"Usage: %s file\n", *argv);
51 if (strcmp(argv[1],
"-") == 0) {
54 else if ((fp = fopen(argv[1],
"r")) == (FILE *) NULL) {
62 if (fgets(str,
sizeof(str), fp) == (
char *) EOF) {
66 if ((cp = strrchr(str,
'\n')) != (
char *) NULL) {
71 printf(
"{%d, \"", len);
72 for (i = 0; i < len; i++) {
73 printf(
"\\%o", str[i] & 0xff);
int main(int argc, char **argv)