strrchr

Returns the address of the last occurrence of a given character in a null-terminated string. The terminating null character is considered to be part of the string.

Format

#include  <string.h>

char *strrchr  (const char *str, int character);
Function Variants This function also has variants named _strrchr32 and _strrchr64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

str
A pointer to a null-terminated character string.
character
An object of type int.

Description

See also strchr in this section.

Return Values
The address of the last occurrence of the specified character. 
NULL  Indicates that the character does not occur in the string. 


Previous Page | Next Page | Table of Contents | Index