Locate character in string.

char * strchr(void)

The strchr() function returns a pointer to the first occurrence of the character val in the string src.

Here "character" means "byte" - these functions do not work with wide or multi-byte characters.

Returns

The strchr() function returns a pointer to the matched character or NULL if the character is not found.