10 * \fn int main(int argc, char *argv[])
13 int main(int argc, char *argv[])
19 printf("Usage: cat <file>\n");
23 FILE *fp = fopen(argv[1], "r");
25 printf("Unable to open '%s' for reading\n", argv[1]);
30 num = fread(buf, BUF_SIZE, 1, fp);
32 fwrite(buf, num, 1, stdout);
33 } while(num == BUF_SIZE);