memchr

Example: memchrString Manipulation Functions

Searches for a character in a buffer.

void *memchr( const void *s, int c, size_t n);

sThe name of the buffer.
cThe character to search for in the buffer.
nThe number of characters at the beginning of the buffer to search.

Return Values

A pointer to the first occurrence of c in buffer. If character is not found the function returns NULL.

For memchr details, refer to your C language documentation.