cdds_ptrerr - write an error message

SYNOPSIS

#include "cdds.h"

int cdds_prterr(fmt, ...);

const char *fmt

[ Description | Examples ]


DESCRIPTION

cdds_prterr() writes an error message to the console with the program name and "ERROR: " attached to it. If the print file has been opened, the message will also be written to the print file. The message is constructed from a format string, fmt, and optional arguments (see cdds_printf). If any error messages are printed or if an abnormal termination occurs, an abnormal message will be printed at the end. The return value is always 0.

EXAMPLES

cdds_prterr("illegal value=%f\n", value);
    

SEE ALSO

cdds_openpr open a printout file
cdds_prtmsg print message
cdds_prtcon print message to console
cdds_errors check for print errors
cdds_closepr close out & termination
cdds_switch DDS command switch fetching
    

AUTHOR

Jerry Ehlers, BP America (May 2003)