memcpy(3) BSD Library Functions Manual memcpy(3)
memcpy -- copy memory area
Standard C Library (libc, -lc)
#include <string.h> void * memcpy(void *restrict s1, const void *restrict s2, size_t n);
The memcpy() function copies n bytes from memory area s2 to memory area s1. If s1 and s2 overlap, behavior is undefined. Applications in which s1 and s2 might overlap should use memmove(3) instead.
The memcpy() function returns the original value of s1.
The memcpy() function conforms to ISO/IEC 9899:1990 (``ISO C90''). BSD June 4, 1993 BSD
Mac OS X 10.8 - Generated Wed Aug 29 07:38:35 CDT 2012