Copies characters sequentially between strings in memory areas.
#include <string.h> void *memccpy (void *dest, void *src, int c, size_t n);Function Variants This function also has variants named _memccpy32 and _memccpy64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.
The memccpy function sequentially copies characters from the location pointed to by src into the location pointed to by dest until one of the following occurs:
x | A pointer to the character following the character specified by c in the string pointed to by dest. |
NULL | Indicates an error. The character c is not found after scanning n characters in the string. |