Lines Matching refs:base
73 static int get_char(char c, int base);
79 static curl_off_t strtooff(const char *nptr, char **endptr, int base) in strtooff() argument
111 if(base == 16 || base == 0) { in strtooff()
113 base = 16; in strtooff()
117 if(base == 8 || base == 0) { in strtooff()
119 base = 8; in strtooff()
126 if(base == 0) { in strtooff()
127 base = 10; in strtooff()
131 for(i = get_char(end[0], base); in strtooff()
133 end++, i = get_char(end[0], base)) { in strtooff()
135 if(value > (CURL_OFF_T_MAX - i) / base) { in strtooff()
139 value = base * value + i; in strtooff()
173 static int get_char(char c, int base) in get_char() argument
201 if(value >= base) { in get_char()
212 CURLofft curlx_strtoofft(const char *str, char **endp, int base, in curlx_strtoofft() argument
219 DEBUGASSERT(base); /* starting now, avoid base zero */ in curlx_strtoofft()
228 number = strtooff(str, &end, base); in curlx_strtoofft()