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

NAME

memcpy - copy bytes in memory

SYNOPSIS

#include <string.h>

void *memcpy(void *s1, const void *s2, size_t n);

DESCRIPTION

The memcpy() function copies n bytes from the object pointed to by s2 into the object pointed to by s1. If copying takes place between objects that overlap, the behaviour is undefined.

RETURN VALUE

The memcpy() function returns s1; no return value is reserved to indicate an error.

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

The memcpy() function does not check for the overflowing of the receiving memory area.

FUTURE DIRECTIONS

None.

SEE ALSO

<string.h>.

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