Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ test_eof
Function
test_eof
depends/lua/src/liolib.c:476–481 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
474
475
476
static int test_eof (lua_State *L, FILE *f) {
477
int c = getc(f);
478
ungetc(c, f); /* no-op when c == EOF */
479
lua_pushliteral(L,
""
);
480
return (c != EOF);
481
}
482
483
484
static int read_line (lua_State *L, FILE *f, int chop) {
Callers
1
g_read
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected