NAME

kjb_print_error - Prints stored error if there is one.

SYNOPSIS

#include "l/l_sys_err.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


void kjb_print_error(void);

DESCRIPTION

This routine prints the error information which is stored by the routines set_error(3), add_error(3), cat_error(), and insert_error(). If there is no error, then nothing is done. (If you are using the development version of the library, then a message is printed saying that kjb_print_error was called with no message to print). there is one. By convention, all KJB library routines will set an error if they returned an error. (Some routines probably break this convention.). Once a message is printed with kjb_print_error, then the current message is cleared.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

push_error_action , pop_error_action , set_error_action , get_error_action , set_bug_handler , default_bug_handler , kjb_get_error , kjb_get_strlen_error , kjb_clear_error , set_error , add_error , cat_error , insert_error , str_set_error , str_add_error , str_cat_error , str_insert_error , set_bug