MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / read_number

Function read_number

Source/Misc/lua/src/lua.c:12187–12194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12185
12186
12187static int read_number (lua_State *L, FILE *f) {
12188lua_Number d;
12189if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) {
12190lua_pushnumber(L, d);
12191return 1;
12192}
12193else return 0; /* read fails */
12194}
12195
12196
12197static int test_eof (lua_State *L, FILE *f) {

Callers 1

g_readFunction · 0.85

Calls 1

lua_pushnumberFunction · 0.85

Tested by

no test coverage detected