next up previous
Next: set_signal_level() Up: Brain Volume I/O Handling Previous: copy_descriptions()

print()  

General I/O with logging and signal level support



Synopsis


int 
print (int level, const char *format,...)


Description
Call this function to perform output to the screen. Several warning levels are supported :

PANIC
WARNING
SILENT
STD
DEBUG
DBG

Special calls :
print(SET_SIG_LEVEL, level) to set global level.
print(OPEN_LOGFILE, "logfile") to open a log file of all output (except NORET's)
print(CLOSE_LOGFILE, "logfile") to close the log file.

Usage

  print(STD, "#c#c!",'O','K');    produces "OK!" on stdout and in logfile if open
  print(PANIC,"Not OK");         produces "Not OK" on stderr and logfile if open

Revision


1.0  29/10-96   Ulrik Kjems


Program listing






Ulrik Kjems
6/3/1998