Scan memory for a character.

void * memchr(void)

The memchr() function scans the first len bytes of the memory area pointed to by src for the character val. The first byte to match val (interpreted as an unsigned character) stops the operation.

Returns

The memchr() function returns a pointer to the matching byte or NULL if the character does not occur in the given memory area.