Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->strchr()
Summary
#include <string.h>
char *strchr(const char* string,char c); | Find first occurrence of c in string |
Parameter
string | String searched |
c | Character searched for |
Description
This function searches string for the first occurrence of character c. The character may be the null character ('\0') - the terminating null character of string is included in the search.
Return Value
Pointer to first occurrence of character c in string or NULL if the character is not found.