MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / test_eof

Function test_eof

deps/lua/src/liolib.c:286–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285
286static int test_eof (lua_State *L, FILE *f) {
287 int c = getc(f);
288 ungetc(c, f);
289 lua_pushlstring(L, NULL, 0);
290 return (c != EOF);
291}
292
293
294static 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