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, 1, BUF_SIZE, fp);
32 fwrite(buf, 1, num, stdout);
33 } while(num == BUF_SIZE);