DDS Developers Documentation → "C" API → closepr2


Index
cdds_addaxis
cdds_align
cdds_axis_prod
cdds_binfd
cdds_calloc
cdds_check
cdds_close
cdds_closepr
cdds_closepr2
cdds_copy
cdds_count
cdds_datadefn
cdds_dict
cdds_errors
cdds_fflush
cdds_free
cdds_genus
cdds_get
cdds_history
cdds_in
cdds_index
cdds_info
cdds_initmpi
cdds_initmpix
cdds_initopenmp
cdds_isreg
cdds_key
cdds_lseek
cdds_lseek8
cdds_malloc
cdds_map
cdds_member
cdds_memuse
cdds_mod
cdds_name
cdds_newer
cdds_next
cdds_object
cdds_offset
cdds_open
cdds_openm
cdds_openpr
cdds_out
cdds_parent
cdds_prec
cdds_prev
cdds_prime
cdds_printf
cdds_printt
cdds_printv
cdds_prtcon
cdds_prterr
cdds_prthdr
cdds_prtmsg
cdds_put
cdds_read
cdds_readm
cdds_realloc
cdds_rmaxis
cdds_savepr
cdds_scale
cdds_scanf
cdds_scank
cdds_scant
cdds_scantn
cdds_scanv
cdds_switch
cdds_write
cdds_writem
setargcv

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)
For additional help, open an issue here