C Programming/string.h/memcpy

memcpyEdit

SynopsisEdit

#include <string.h>
void *memcpy(void *dest, const void *src, size_t n);

The memcpy() copies n characters from src to dest.

Return valueEdit

The function returns a pointer to the destination, dest.

SourceEdit

  • Definition of memcpy from OpenGroup