MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / test_eof

Function test_eof

lua/liolib.c:291–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290
291static int test_eof (lua_State *L, FILE *f) {
292 int c = getc(f);
293 ungetc(c, f);
294 lua_pushlstring(L, NULL, 0);
295 return (c != EOF);
296}
297
298
299static 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