// gcc memcpy.c #include int main() { char *src = "Hello World\n"; char dst[5]; memcpy(dst, src, 1 + strlen(src)); return 0; }