memccpy
extern void *memccpy(void *dest, const void *source, int stopByte, size_t length);
return memccpy(dest, source, stopByte, length);