Lines Matching refs:base
48 static int get_char(char c, int base);
55 curlx_strtoll(const char *nptr, char **endptr, int base)
88 if(base == 16 || base == 0) {
90 base = 16;
94 if(base == 8 || base == 0) {
96 base = 8;
100 /* Matching strtol, if the base is 0 and it doesn't look like
101 * the number is octal or hex, we assume it's base 10.
103 if(base == 0) {
104 base = 10;
110 for(i = get_char(end[0], base);
112 end++, i = get_char(end[0], base)) {
113 newval = base * value + i;
145 * Returns the value of c in the given base, or -1 if c cannot
146 * be interpreted properly in that base (i.e., is out of range,
149 * @param c the character to interpret according to base
150 * @param base the base in which to interpret c
152 * @return the value of c in base, or -1 if c isn't in range
154 static int get_char(char c, int base)
182 if(value >= base) {