Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ObEngine/ObEngine
/ test_eof
Function
test_eof
extlibs/lua/src/liolib.c:497–502 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
495
496
497
static int test_eof (lua_State *L, FILE *f) {
498
int c = getc(f);
499
ungetc(c, f); /* no-op when c == EOF */
500
lua_pushliteral(L,
""
);
501
return (c != EOF);
502
}
503
504
505
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