libc.info: memchr

Go forward to memcmp
Go backward to memccpy
Go up to Strings
Go to the top op libc

`memchr'--find character in memory

*Synopsis*
     #include <string.h>
     void *memchr(const void *SRC, int C, size_t LENGTH);
   *Description*
This function searches memory starting at `*SRC' for the character C.
The search only ends with the first occurrence of C, or after LENGTH
characters; in particular, `NULL' does not terminate the search.
*Returns*
If the character C is found within LENGTH characters of `*SRC', a
pointer to the character is returned. If C is not found, then `NULL' is
returned.
*Portability*
`memchr'> is ANSI C.
   `memchr'  requires no supporting OS subroutines.