aperror - Error Reporting Function
Function aperror() formats and outputs a system error message.
aperror() essentially combines the C Library functions
fprintf(3) and perror(3), allowing the programmer
to easily construct and output an arbitrary error message. Global variable
aperror_print must be set to a non-zero value in order for the
message to actually be output. aperror_print can be set
explicitly by the application or by setting environment variable,
APERROR_PRINT, to a non-zero value.
Public Procedures
aperror() - formats and outputs a system error message.
Public Variables
aperror_print - enables/disables aperror() output.
aperror_file - is aperror()'s output device.
Source Files
-
aperror.c
-
aperror.h
(See libgpl for the
complete source, including support routines and build files.)