The strchr() function locates the first occurrence of c in the string pointed to by s. The terminating NUL character is considered part of the string. If c is ‘\0', strchr() locates the terminating ‘\0'.
RETURN VALUES
The function strchr() returns a pointer to the located character, or NULL if the character does not appear in the string.
EXAMPLES
After the following call to strchr(), p will point to the string “oobar”: