7.21.5.5 The strrchr function

Synopsis

1

#include <string.h>
char *strrchr(const char *s, int c);

Description

2

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

Returns

3

The strrchr function returns a pointer to the character, or a null pointer if c does not occur in the string.