string(3) CLIX string(3)
NAME
string: index, rindex - Utility used in string operations
LIBRARY
Berkeley Software Distribution Library (libbsd.a)
SYNOPSIS
char *index(
char *s ,
char c );
char *rindex(
char *s ,
char c );
PARAMETERS
s A pointer to a character string
c A character variable
DESCRIPTION
These functions operate on null-terminated strings.
CAUTIONS
These functions do not check for any receiving-string overflow.
RETURN VALUES
Both index() and rindex() will return a pointer to the first (or last)
occurrence of a character c in string s. If the character c does not
exist in string s, an 0 will return.
2/94 - Intergraph Corporation 1