-

Changes

Jump to: navigation, search

Functions HI-TECH C STRCHR

573 bytes added, 00:09, 1 August 2017
Created page with "<strong>STRCHR, STRRCHR</strong> ==SYNOPSIS== #include <string.h> char * strchr(char * s, int c) char * strrchr(char * s, int c) ==DESCRIPTION== These functions..."
<strong>STRCHR, STRRCHR</strong>
==SYNOPSIS==

#include <string.h>

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


==DESCRIPTION==
These functions locate an instance of the character c
in the string s. In the case of <strong>strchr</strong>() a pointer will
be returned to the first instance of the character
found be searching from the beginning of the string,
while <strong>strrchr</strong>() searches backwards from the end of the
string. A null pointer is returned if the character
does not exist in the string.

==SEE ALSO==

Navigation menu