too much information...
[unix-history] / usr / src / usr.bin / pascal / libpc / blkcpy.c
CommitLineData
af60b545
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
f7593875 3static char sccsid[] = "@(#)blkcpy.c 1.3 %G%";
af60b545 4
f7593875 5blkcpy(from, to, siz)
af60b545
KM
6 register char *from;
7 register char *to;
f7593875 8 long siz;
af60b545
KM
9{
10 register int size = siz;
11
882d2c35 12 if (to < from)
af60b545
KM
13 while(size-- > 0)
14 *to++ = *from++;
15 else {
16 to += size;
17 from += size;
18 while(size-- > 0)
19 *--to = *--from;
20 }
21}