bcopy - memory operations (LEGACY)
The bcopy() function shall copy n bytes from the area pointed to by s1 to the area pointed to by s2.
The bytes are copied correctly even if the area pointed to by s1 overlaps the area pointed to by s2.
The bcopy() function shall not return a value.
No errors are defined.
The memmove() function is preferred over this function.
The following are approximately equivalent (note the order of the arguments):bcopy(s1,s2,n) = memmove(s2,s1,n)
For maximum portability, it is recommended to replace the function call to bcopy() as follows:#define bcopy(b1,b2,len) (memmove((b2), (b1), (len)), (void) 0)
This function may be withdrawn in a future version.
memmove(), the Base Definitions volume of IEEE Std 1003.1-2001, <strings.h>
First released in Issue 4, Version 2.
Moved from X/OPEN UNIX extension to BASE.
This function is marked LEGACY.