3 * cpydata.c -- copy all data from one fd to another
11 cpydata (int in, int out, char *ifile, char *ofile)
16 while ((i = read(in, buffer, sizeof(buffer))) > 0) {
17 if (write(out, buffer, i) != i)
18 adios(ofile, "error writing");
22 adios(ifile, "error reading");