MCPcopy Create free account
hub / github.com/TASEmulators/fceux / read_number

Function read_number

src/lua/src/liolib.c:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271
272
273static int read_number (lua_State *L, FILE *f) {
274 lua_Number d;
275 if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) {
276 lua_pushnumber(L, d);
277 return 1;
278 }
279 else return 0; /* read fails */
280}
281
282
283static 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