MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / l_str2dloc

Function l_str2dloc

extlibs/lua/src/lobject.c:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221#endif
222
223static const char *l_str2dloc (const char *s, lua_Number *result, int mode) {
224 char *endptr;
225 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */
226 : lua_str2number(s, &endptr);
227 if (endptr == s) return NULL; /* nothing recognized? */
228 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */
229 return (*endptr == '\0') ? endptr : NULL; /* OK if no trailing characters */
230}
231
232
233/*

Callers 1

l_str2dFunction · 0.85

Calls 1

lua_strx2numberFunction · 0.85

Tested by

no test coverage detected