Chapter-8/8-1/cat.c
/* filecopy:  copy file ifd to file ofd */
copy file ifd to file ofd
copy file ifd to file ofd
void filecopy(int ifd, int ofd) {
  char buf[BUFSIZ];
  int c;
  while ((c = read(ifd, buf, BUFSIZ)) > 0) 
    write(ofd, buf, c);                    
}
void filecopy ( int ifd , int ofd ) { char buf [ BUFSIZ ] ; int c ; while ( ( c = read ( ifd , buf , BUFSIZ ) ) > 0 ) write ( ofd , buf , c ) ; }
filecopy:  copy file ifd to file ofd
filecopy : copy file ifd to file ofd
/* read from ifd */ /* write to ofd */