INDEX(3) NEWLIB INDEX(3)NAME
6.4 `index'--search for character in string
SYNOPSIS
#include <string.h>
char * index(const char *STRING, int C);
DESCRIPTION
This function finds the first occurence of C (converted to a char) in
the string pointed to by STRING (including the terminating null characā
ter).
This function is identical to `strchr'.
RETURNS
Returns a pointer to the located character, or a null pointer if C does
not occur in STRING.
PORTABILITY
`index' requires no supporting OS subroutines.
SEE ALSOindex is part of the library. The full documentation for is maintained
as a Texinfo manual. If info and are properly installed at your site,
the command
info
will give you access to the complete manual.
NEWLIB April 2010 INDEX(3)