Everything

strchr


Searches a specified string for the first occurrence of a specified character.

[Format]

char *strchr (const char *s, long c);

[Parameters]

s Pointer to the string to be searched

c Character to search for

[Return values]

If the character is found: Pointer to the found character

If the character is not found: NULL

[Remarks]

The strchr function searches the string specified by s looking for the first occurrence of the character specified as c. If the c character is found, the function returns the pointer to the found character.

The null character at the end of the s string is included in the search object.