str2val
str2val(const char *str, int base, size_t *len)
str2val(const char *str, const char *what, int mi, int ma)