The libc implementation
Martin ‘Solar’ Baute
Public Domain
void * memchr(const void *s,int c,size_t n)
Finds the first occurance of the character c in s, where n is the maximum amount of bytes to compare
Returns a pointer to the location in the buffer where c is found
Returns NULL if c could not be found