[78e35d]: / joe / test.c  Maximize  Restore  History

Download this file

15 lines (13 with data), 227 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <stdio.h>
main(int argc,char *argv[])
{
int c;
FILE *f = fopen(argv[1],"r");
if (!f) {
fprintf(stderr,"couldn't open file\n");
return -1;
}
while ((c = fgetc(f)) != -1)
putchar(c);
return 0;
}