1987-03-31 10:45:53 +00:00
|
|
|
/* $Header$ */
|
1987-01-27 15:57:55 +00:00
|
|
|
bcopy(old, new, n)
|
|
|
|
register char *old, *new;
|
|
|
|
register int n;
|
|
|
|
{
|
|
|
|
/* Copy a block of data. */
|
|
|
|
|
|
|
|
if (old <= new && old + (n-1) >= new) {
|
|
|
|
old += n; new += n;
|
|
|
|
while (n-- > 0) *--new = *--old;
|
|
|
|
}
|
|
|
|
else while (n-- > 0) *new++ = *old++;
|
|
|
|
}
|