Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
291
static 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
299
static int read_line (lua_State *L, FILE *f) {
Callers
1
g_read
Function · 0.85
Calls
1
lua_pushlstring
Function · 0.85
Tested by
no test coverage detected