|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 449 (0x1c1)
Types: TextFile
Names: »cpydata.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z«
└─⟦c75e36ecb⟧
└─⟦this⟧ »mh-6.7/sbr/cpydata.c«
/* cpydata.c - copy from one fd to another */
#include "../h/mh.h"
#include <stdio.h>
void cpydata (in, out, ifile, ofile)
register int in,
out;
register char *ifile,
*ofile;
{
register int i;
char buffer[BUFSIZ];
while ((i = read (in, buffer, sizeof buffer)) > 0)
if (write (out, buffer, i) != i)
adios (ofile, "error writing");
if (i == NOTOK)
adios (ifile, "error reading");
}