1 // a silly quotation utitility
4 This code was written by Lars Doelle <lars.doelle@on-line.de>.
5 This code is in the public domain.
14 void pchr(int c
, int indent
)
25 printf("\\n\"\n%*s\"",indent
,"");
43 int main(int argc
, char* argv
[])
44 { int cc
; FILE *sysin
;
45 if (argc
< 2) { fprintf(stderr
,"usage: %s filename\n",argv
[0]); return 1; }
46 sysin
= fopen(argv
[1],"r");
47 if (!sysin
) { fprintf(stderr
,"cannot open %s\n",argv
[1]); perror("reason: "); return 1; }
48 printf("%*s/* generated by '%s %s' */\n\n",INDENT
,"",argv
[0],argv
[1]);
49 printf("%*s\"",INDENT
,"");
50 while( (cc
= fgetc(sysin
)) > 0)