Share this page

# strchr

Example: strchr | String Manipulation Functions

Returns the pointer to the first occurrence of a character in a string.

    char *strchr( const char *string, int c);

string | The string that is searched.
c | The character that is searched for in the string.

## Return Values

strchr returns the pointer to the first occurrence of a character in a string. If character is found, returns a pointer to the first occurrence of c in string. If not, it returns NULL.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: