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.
#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.
x | The address of the last occurrence of the specified character. |
NULL | Indicates that the character does not occur in the string. |