#include int main(int argc, char* argv[]) { if ( argc == 1 ) { printf("Usage: %s [FILES]\n", argv[0]); return 0; } for ( int i = 1; i < argc; ++i ) { FILE* source = fopen(argv[i], "r"); if ( ! source ) { fprintf(stderr, "%s: Could not open %s\n", argv[0], argv[i]); continue; } int ch = 0; while ( (ch = getc(source)) != EOF ) putc(ch, stdout); fclose(source); } return 0; }