]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/cpydata.c
1 /* cpydata.c - copy from one fd to another */
7 void cpydata (in
, out
, ifile
, ofile
)
16 while ((i
= read (in
, buffer
, sizeof buffer
)) > 0)
17 if (write (out
, buffer
, i
) != i
)
18 adios (ofile
, "error writing");
21 adios (ifile
, "error reading");