mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
26 lines
363 B
C
26 lines
363 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
int i;
|
|
FILE* in;
|
|
char ch;
|
|
|
|
for (i=1; i<argc; i++)
|
|
{
|
|
in = fopen(argv[i],"r");
|
|
if (in == NULL)
|
|
{
|
|
printf("Failed to open file %s\n", argv[i]);
|
|
return(0);
|
|
}
|
|
|
|
while ((ch = fgetc(in)) != EOF)
|
|
{
|
|
putchar(ch);
|
|
}
|
|
fclose(in);
|
|
}
|
|
return 0;
|
|
}
|