ss1spi - Scan a strictly positive int from a string
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const char *input_str,
This routine is similar to ss1i, except now we insist that the contents of
"str" represent a strictly positive number (still restricted to the INT_MAX
If "str" represents a valid positive integer, then NO_ERROR is returned.
Otherwise the problem with "str" is reported in the set error message, and
ERRROR is returned. The problem with "str" can be printed with
Use ss1ui() if what you really want is an unsigned int. Use ss1pi() if 0
is considered positive.
ss1spi64, ss1spi32, ss1spi16
These macros can be used to force scanning of a certain integer size. The
argument of these is normally a pointer to kjb_int64, kjb_int32, or
kjb_int16 as appropriate.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.