Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
286
static 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
294
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