strchr

Syntax

char* strchr(const char* s, int c)

Arguments

s
A pointer to the string to be scanned.
c
The character to find.

Return

A pointer to the character found or NULL if the character was not found.

Description

Find the first occurrence of the given character c in the string s and return its location.

Also see

strrchr