Name
memchr -- searches for a character in memory
Synopsis
#include <string.h>
void * memchr
(const void * s, int c, size_t n);
Description
This function searches an array of unsigned char, beginning at the address pointed to by
s, with size n. It searches for the first element of the array that equals
unsigned char c. If successful, it returns the address of the matching element;
otherwise, it returns a null pointer.