rindex()

search for character in string 

Function


SYNOPSIS

#include <string.h>

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


DESCRIPTION

The rindex() function is identical to strrchr().


PARAMETERS

s 

Points to the string to search.

c 

Is the character to search for.


RETURN VALUES

If successful, rindex() returns a pointer to the last occurrence of character c in string s. On failure, it returns a null character.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

Use strrchr().


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:
index(), strchr(), strrchr()


PTC MKS Toolkit 10.4 Documentation Build 39.