Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->strrchr()

Summary

#include <string.h>

    
char *strrchr(const char* string,char c);Find last occurrence of c in string

Parameter

    
stringString searched
cCharacter searched for


Description

This function searches string for the last occurrence of character c.  The character may be the null character ('\0') - the terminating null character of string is included in the search.


Return Value

Pointer to the last occurrence of character c in string or NULL if the character is not found.