cdds_prtmsg - write a message

SYNOPSIS

#include "cdds.h"

int cdds_prtmsg(fmt, ...);

const char *fmt

[ Description | Examples ]


DESCRIPTION

cdds_prtmsg() writes a message to the print file if it has been opened, otherwise, the message is written to the console. The message is based on a format string, fmt, and optional arguments (see cdds_printf). The return value is always 0.

EXAMPLES

int ofst;
float angle;
...
cdds_openpr("filt", "$Id: prtmsg.html 57 2009-02-11 23:09:37Z ehlersjw $");
cdds_prtmsg("offset = %d\nangle =%f\n", ofst, angle);
    

SEE ALSO

cdds_openpr open a printout file
cdds_prtcon print message to console
cdds_prterr print error message
cdds_errors check for print errors
cdds_closepr close out & termination
    

AUTHOR

Jerry Ehlers, BP America (May 2003)