home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_07 / 1007091a < prev    next >
Text File  |  1992-05-05  |  340b  |  16 lines

  1.  
  2. static void do_copy (int infile, int tmp_file, long len)
  3.    {
  4.      int to_do;
  5.      char buffer [SIZE_BUFFER];
  6.      do
  7.           {
  8.           to_do = (int) (min ((long) SIZE_BUFFER, len));
  9.           read (infile, buffer, to_do);
  10.           write (tmp_file, buffer, to_do);
  11.          } while (len -= to_do);
  12.      return ;
  13.    }
  14.  
  15.  
  16.