index()

search for character in string 

Function


SYNOPSIS

#include <string.h>

char *index(const char *s, int *c);


DESCRIPTION

The index() function is identical to strchr().


PARAMETERS

s 

Points to the string to parse.

c 

Points to the character to search for.


RETURN VALUES

If successful, index() returns a pointer to the first occurrence of character c in string s. If not, it returns NULL.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

Use strchr().


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
rindex(), strchr()


MKS Toolkit 9.3 Documentation Build 6.