27 #ifdef NEED_CURL_STRTOLL
32 static int get_char(
char c,
int base);
39 curlx_strtoll(
const char *nptr,
char **endptr,
int base)
50 while (isspace((
int)end[0])) {
59 else if (end[0] ==
'+') {
62 else if (end[0] ==
'\0') {
71 if (end[0] ==
'0' && end[1] ==
'x') {
72 if (base == 16 || base == 0) {
77 else if (end[0] ==
'0') {
78 if (base == 8 || base == 0) {
94 for (i = get_char(end[0], base);
96 end++, i = get_char(end[0], base)) {
97 newval = base * value +
i;
115 value = 0x8000000000000000
L;
117 value = 0x7FFFFFFFFFFFFFFF
L;
138 static int get_char(
char c,
int base)
145 value = c -
'A' + 10;
148 value = c -
'a' + 10;
GLsizei const GLfloat * value