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 >
Wrap
Text File
|
1992-05-05
|
340b
|
16 lines
static void do_copy (int infile, int tmp_file, long len)
{
int to_do;
char buffer [SIZE_BUFFER];
do
{
to_do = (int) (min ((long) SIZE_BUFFER, len));
read (infile, buffer, to_do);
write (tmp_file, buffer, to_do);
} while (len -= to_do);
return ;
}