cdds_closepr - close the printout file & terminate execution
SYNOPSIS
#include "cdds.h"
int cdds_closepr();
[ Description
| Examples
]
DESCRIPTION
cdds_closepr() writes a 'NORMAL TERMINATION' message to the
console if no errors have been detected (by calling cdds_prterr),
otherwise, an 'ABNORMAL TERMINATION' message will be written.
It will also print out a summary of DDS ERRORS, DDS WARNINGS and
DDS DEBUG messages as well as any unused parameter definitions.
If the print file has been opened, these messages will also be written
into it and then the print file will be closed.
The program will exit() with a return status of 0 if no errors were
detected otherwise with a non-zero value. The routine will never
return. This ensures that the proper return status gets returned.
EXAMPLES
ier=cdds_openpr("filt", "$Id: closepr.html 57 2009-02-11 23:09:37Z ehlersjw $");
...
cdds_closepr();
SEE ALSO
cdds_openpr open a printout file
cdds_prtmsg print message
cdds_prtcon print message to console
cdds_prterr print error message
cdds_errors check for print errors
AUTHOR
Jerry Ehlers, BP America (May 2003)