#include <string.h>
void *memchr(const void *p, int ch, size_t n);
memchr() looks for the first occurrence of a byte containing ( ch&0xFF) in the first n bytes of the memory are pointed to by p.
A pointer to the byte found, or NULL if no such byte was found.