memccpy(3) - Linux man page
Name
memccpy - copy memory areaSynopsis
#include <string.h> void *memccpy(void *dest, const void *src, int c, size_t n);
Description
The memccpy() function copies no more than n bytes from memory area src to memory area dest, stopping when the character c is found.If the memory areas overlap, the results are undefined.