|
|
#include <string.h>void *memchr(const void *buffer, int ch, size_t count);
The memchr( ) function searches the array pointed to by buffer for the first occurrence of ch in the first count characters.
The memchr( ) function returns a pointer to the first occurrence of ch in buffer, or it returns a null pointer if ch is not found.
Related functions are memcpy( ) and isspace( ).
|
|