The strchr() function locates the ﬁrst occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is considered to be part of the string.
The strchr() function returns a pointer to the located character, or a null pointer if the character does not occur in the string.
Declared in string.h
The C89/C99 prototype is:
In standard C, this can be implemented as:
The C Standard, 18.104.22.168 (C99 numbering)