MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / test_eof

Function test_eof

3rd/lua-5.4.3/src/liolib.c:511–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510
511static int test_eof (lua_State *L, FILE *f) {
512 int c = getc(f);
513 ungetc(c, f); /* no-op when c == EOF */
514 lua_pushliteral(L, "");
515 return (c != EOF);
516}
517
518
519static int read_line (lua_State *L, FILE *f, int chop) {

Callers 1

g_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected