home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
stex2-18.zip
/
SeeTeX
/
Tex3b1
/
misc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-07-09
|
388b
|
27 lines
/* Berkeley type bcopy, allows for overlapped strings (copies backward). */
bcopy (s,d,n)
char *s, *d;
int n;
{
register char *from, *to, *base;
base = s;
from = base + n;
to = d + n;
while (from > base)
*--to = *--from;
}
bzero (s,n)
char *s;
int n;
{
register char *start, *end;
start = s;
end = start + n;
while (start < end)
*start++ = 0;
}