use syscall for doing syswrite stuff -- more portable?
[unix-history] / usr / src / local / sccscmds / sccscmds.ok / util / cat.c
static char Sccsid[] = "@(#)cat.c 1.2 %G%";
/*
Concatenate strings.
cat(destination,source1,source2,...,sourcen,0);
returns destination.
*/
char *cat(dest,source)
char *dest, *source;
{
register char *d, *s, **sp;
d = dest;
for (sp = &source; s = *sp; sp++) {
while (*d++ = *s++) ;
d--;
}
return(dest);
}