cdds_closepr2 - close the printout file & terminate execution
SYNOPSIS
#include "cdds.h"
int cdds_closepr2(status);
-
int status
[ Description
| Examples
]
DESCRIPTION
cdds_closepr2() 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 as given by "status"
(NOTE: it may return only the low order byte). The routine will never
return. This ensures that the proper return status gets returned.
EXAMPLES
ier=cdds_openpr("filt", "$Id: closepr2.html 57 2009-02-11 23:09:37Z ehlersjw $");
...
cdds_closepr2();
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)