The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 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() 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

memmove(), <strings.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]