NAME

kjb_get_strlen_error - Returns the string length of the error message.

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 


int kjb_get_strlen_error(void);

DESCRIPTION

This routine is a complement to kjb_get_error, which requires a buffer length. What should that buffer length be so that no error messages are truncated? This function helps you figure it out: it returns the number of non-null characters in the error string. Like strlen(), it does not count the null at the end of the string.

DISCLAIMER

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

AUTHOR

Andrew Predoehl

DOCUMENTER

Andrew Predoehl

SEE ALSO

push_error_action , pop_error_action , set_error_action , get_error_action , set_bug_handler , default_bug_handler , kjb_print_error , kjb_get_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