standard.C.string.strchr

strchr is available since version 1.0.

Prototype:

string strchr(string string, string c)

Parameters

string
Null-terminated source string.
c
Character to be located.

Description:

Find a character in a string. The strchr function finds the first occurrence of c in string, or it returns an empty string if c is not found. The null-terminating character is included in the search.

Return value:

Returns a string starting from the first occurence of c in string, or an empty string if c not found.