Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (s) strrchr(3)
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 and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
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).
527192-018 Hewlett-Packard Company 6−117