memchr


Memory search

[Classification]

Standard library

[Syntax]

#include <string.h>

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

[Return value]

If c is found, a pointer indicating this character is returned. If c is not found, the null pointer is returned.

[Description]

This function obtains the position at which character c (converted into char type) appears first in the first length number of characters in an area indicated by s.