Declaration:
int memchr(void s[], int c, int n, int index=0);
Description
The memchr function searches for the first entry of character c (which was earlier converted into the unsigned char) among the first n characters (interpreted as the unsigned char) of the object specified by s.
Returned value
The memchr function returns the number of the found byte counting from the beginning of the array, or -1, if the byte is not found
|