strnum.h revision 076f8c12cfa4c8d30695f94f389c670d89e200fa
#ifndef STRNUM_H
#define STRNUM_H
/* Return TRUE if all characters in string are numbers.
Stop when `end_char' is found from string. */
/* str_to_*() functions return 0 if string is valid number in valid range.
Otherwise -1 is returned and num_r is left untouched */
/* Returns TRUE if str is a valid unsigned number that equals to num. */
/* Returns human readable string about what is wrong with the string.
This function assumes that str_to_*() had already returned -1 for the
string. */
const char *str_num_error(const char *str);
#endif