Next: memmove, Previous: memcmp, Up: C library functions [Index]
memcpy
Function#include <string.h> #define BUFLENGTH 1024 Integer new length; Integer new result; char buf1[BUFLENGTH], buf2[BUFLENGTH], *charptr; length = BUFLENGTH strcpy (buf1, "Some text."); result = (char *)memcpy ((void *)buf1, (void *)buf2, length);