Prog#187: copy command

/*
copy command
Program#187
*/
#include<stdio.h>
main(int argc,char *argv[])
{
char a; FILE *fs,*ft;
if(argc!=2)
{
printf("error. no.of arguments");
return 0;
}
fs=fopen (argv[1], "r");
if(fs==NULL)
{
printf("file open error");
return 0;
}
ft=fopen (argv[2], "w");
if(ft==NULL)
{
printf("file open error");
return 0;
}
while((a=getc(fs))!=EOF)
fclose(fs);
fclose(ft);
}