Search a string for a character.
char * strchr (char * string, int c);
Required Header |
<string.h> |
Return Value
The position of the character in the destination string is returned. NULL indicates the character could not be found.
Parameters
string
A string
c
The character to search for
Remarks
The null-terminator character is included in the search.