-
Difference between revisions of "Functions HI-TECH C STRCHR"
From HI-TECH C for CP/M Fan WIKI(EN)
(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...") |
(No difference)
|
Latest revision as of 00:09, 1 August 2017
STRCHR, STRRCHR
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 strchr() a pointer will be returned to the first instance of the character found be searching from the beginning of the string, while strrchr() searches backwards from the end of the string. A null pointer is returned if the character does not exist in the string.