Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
strrchr(3) Guardian Native C Library Calls Reference Manual
NAME
strrchr - Searches for character in string
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <string.h>
char *strrchr(
const char *s,
int c);
PARAMETERS
s Specifies the string to search.
c Specifies a character, expressed as an int data type, to search for.
DESCRIPTION
The strrchr() function locates the last occurrence of the integer specified by the c parameter,
which is converted to a char value, in the string pointed to by the s parameter. The terminating
null character is treated as a part of the string pointed to by the s parameter.
If c is a null byte (’\0’), the function locates the terminating null byte of s.
RETURN VALUES
Upon successful completion, this function returns a pointer to the matching character in the
scanned string. When the character specified by parameter c is not found, a null pointer is
returned.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Functions: strcat(3), strchr(3), wcschr(3).
6−76 Hewlett-Packard Company 527192-005