programming.nbk: Home | Index | Next Page: strcpy(char *s1, const char *s2) | Previous Page: strcat(char *s1, const char *s2)


 strchr(char *str, int character)

Locate first occurrence of character in string

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

The terminating null-character is considered part of the C string. Therefore, it can also be loca = Syntax =

Parameters

Return Value

A pointer to the first occurrence of character in str. If the value is not found, the function returns a null pointer.


programming.nbk: Home | Index | Next Page: strcpy(char *s1, const char *s2) | Previous Page: strcat(char *s1, const char *s2)


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time