-

Functions HI-TECH C STRCHR

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 00:09, 1 August 2017 by Kumokosi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

SEE ALSO