BCOPY(3) Library Functions Manual BCOPY(3)
NAME
bcopy — memory
operations
SYNOPSIS
#include <strings.h> void bcopy(const void *s1, void *s2, size_t n);
DESCRIPTION
The bcopy() function copies 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.
RETURN VALUE
The bcopy() function returns no value.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
For portability to implementations conforming to earlier versions of this specification, memmove(3) is preferred over this function.
The following are approximately equivalent (note the order of the
arguments): bcopy(s1,s2,n) ~= memmove(s2,s1,n)
FUTURE DIRECTIONS
None.
SEE ALSO
February 1997 posix.fail