Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ test_eof
Function
test_eof
lib/lua/src/liolib.c:514–519 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
512
513
514
static int test_eof (lua_State *L, FILE *f) {
515
int c = getc(f);
516
ungetc(c, f); /* no-op when c == EOF */
517
lua_pushliteral(L,
""
);
518
return (c != EOF);
519
}
520
521
522
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