Lines Matching refs:endptr
193 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
201 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
223 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
236 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
252 char *endptr; in l_str2dloc() local
253 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc()
254 : lua_str2number(s, &endptr); in l_str2dloc()
255 if (endptr == s) return NULL; /* nothing recognized? */ in l_str2dloc()
256 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc()
257 return (*endptr == '\0') ? endptr : NULL; /* OK if no trailing characters */ in l_str2dloc()
275 const char *endptr; in l_str2d() local
280 endptr = l_str2dloc(s, result, mode); /* try to convert */ in l_str2d()
281 if (endptr == NULL) { /* failed? may be a different locale */ in l_str2d()
288 endptr = l_str2dloc(buff, result, mode); /* try again */ in l_str2d()
289 if (endptr != NULL) in l_str2d()
290 endptr = s + (endptr - buff); /* make relative to 's' */ in l_str2d()
292 return endptr; in l_str2d()