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

Function test_eof

Source/Misc/lua/src/lua.c:12197–12202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12195
12196
12197static int test_eof (lua_State *L, FILE *f) {
12198int c = getc(f);
12199ungetc(c, f);
12200lua_pushlstring(L, NULL, 0);
12201return (c != EOF);
12202}
12203
12204
12205static int read_line (lua_State *L, FILE *f) {

Callers 1

g_readFunction · 0.85

Calls 1

lua_pushlstringFunction · 0.85

Tested by

no test coverage detected