4 void cpfile(
char *fromfile,
char *tofile)
12 fr=fopen(fromfile,
"r");
16 printf(
"could not open %s for read\n",fromfile);
25 printf(
"could not open %s for write\n",tofile);
32 ier=fread(kbuf,
sizeof(
char),10000,fr);
37 fwrite(kbuf,
sizeof(
char),ier,fw);
44 chmod(tofile,S_IRUSR | S_IWUSR |
void cpfile(char *fromfile, char *tofile)
printf("fbuf is %s\n", fbuf)