__mempcpy -- copy given number of bytes of source to destination


#include <string.h>

void * __mempcpy(void * restrict dest, const void * restrict src, size_t n);


__mempcpy() copies n bytes of src to dest, returning a pointer to the byte after the last written byte.

If copying takes place between objects that overlap, the behavior is undefined.

If either dest or src is a null pointer, the behavior is undefined.

If n is 0 and the other parameters are valid, the return value is dest.

__mempcpy() is not in the source standard; it is only in the binary standard.