MCPcopy 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
514static 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
522static 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