ADIC Server Server User Manual


 
4-96 DAS ACI Functions
601626-B
aci_perror
The aci_perror function writes DAS error text to standard
error. See Figure 4-86.
Figure 4-86 aci_perror Function Call
The aci_perror function writes an error message to the
standard error device, describing the last error encountered.
The error message is either returned by the DAS server, or if
not available, the error message is selected according to the
value stored in d_errno.The parameter error_prefix is
attached to the message. See Table 4-37.
See Figure 4-87 for an example of the aci_perror function.
Figure 4-87 Example of the aci_perror Function
Table 4-37 Parameter for the aci_perror Function Call
Parameter Description
Error_prefix message (error, warning or information) stored in d_errno
#include "aci.h"
int aci_perror( char *error_prefix )
/* Write DAS error message with usr text prepended */
if ( d_errno )
{
aci_perror( "This text is prepended: " );
}