Prog#186: cat command - cat 2 or more files

/*
cat command - cat 2 or more files
Program#186
*/
#include<stdio.h>
main(int argc,char *argv[])
{
int i;
char a;
FILE *fp;
if(argc<02)
{
printf("error. no.of arg.");
return 0;
}
i=1;
while(i=argc)
{
fp=fopen (argv[1], "r");
if(fp==NULL)
{
printf("file open error");
return 0;
}
while((a=getc(fp))!=EOF)
printf("%c", a);
fclose (fp);
i++;
}
}