1 /* bcopy -- copy memory regions of arbitary length
4 bcopy -- copy memory regions of arbitrary length
7 void bcopy (char *in, char *out, int length)
10 Copy LENGTH bytes from memory region pointed to by IN to memory
11 region pointed to by OUT.
14 Significant speed improvements can be made in some cases by
15 implementing copies of multiple bytes simultaneously, or unrolling
21 bcopy (src
, dest
, len
)
22 register char *src
, *dest
;
30 char *lasts
= src
+ (len
-1);
31 char *lastd
= dest
+ (len
-1);
33 *(char *)lastd
-- = *(char *)lasts
--;