VMS Help
CRTL, strrchr
*Conan The Librarian
|
Returns the address of the last occurrence of a given character
in a null-terminated string.
Format
#include <string.h>
char *strrchr (const char *str, int character);
The strrchr function has variants named _strrchr32 and _strrchr64
for use with 32-bit and 64-bit pointer sizes, respectively.
str
A pointer to a null-terminated character string.
character
An object of type int.
This function 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.
Compare with strchr, which returns the address of the first
occurrence of a given character in a null-terminated string.
x The address of the last occurrence of the
specified character.
NULL Indicates that the character does not occur in
the string.