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

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


SEE ALSO

Functions:
rindex(), strchr()


PTC MKS Toolkit 10.4 Documentation Build 39.