Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
Guardian Native C Library Calls (n - r) perror(3)
NAME
perror - Writes a message explaining a function error
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdio.h>
#include <errno.h>
void perror(
const char *string);
PARAMETERS
string A parameter string that contains the name of the program or function that
detected the error. The ensuing printed message contains this string, a : (colon),
and an explanation of the error.
DESCRIPTION
The perror() function writes a message on the standard error output that describes the last error
encountered by a library function. The error message includes the string parameter string fol-
lowed by a : (colon), a blank, the message, and a newline character. If the string argument is a
null pointer or points to a null string, the string, colon, and blank are skipped.
The perror() function only supports the C/POSIX locale.
RETURN VALUES
This function does not return a value.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Functions: strerror(3).
527192-005 Hewlett-Packard Company 5−21