C Programming/string.h/memcpy

From Wikibooks, open books for an open world
Jump to navigation Jump to search

memcpy

[edit | edit source]

Synopsis

[edit | edit source]
#include <string.h>
void *memcpy(void *dest, const void *src, size_t n);

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

Return value

[edit | edit source]

The function returns a pointer to the destination, dest.

Source

[edit | edit source]
  • Definition of memcpy from OpenGroup