strrchr()

locate last occurrence of character in string 

Function


SYNOPSIS

#include <string.h>

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


DESCRIPTION

The strrchr() function locates the last occurrence of c, cast to char, in the string pointed to by s. The terminating null character is considered a part of the string.


PARAMETERS

s 

Points to the string to be searched.

c 

Is the character to search for in string s.


RETURN VALUES

The strrchr() function returns a pointer to the last occurrence of character c located within s. If character c does not occur in the string, strrchr() returns a null pointer.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


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:
strchr(), strcspn(), strpbrk(), strspn(), strstr()


PTC MKS Toolkit 10.4 Documentation Build 39.