MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / io_flush

Function io_flush

lib/lua/src/liolib.c:737–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735
736
737static int io_flush (lua_State *L) {
738 FILE *f = getiofile(L, IO_OUTPUT);
739 errno = 0;
740 return luaL_fileresult(L, fflush(f) == 0, NULL);
741}
742
743
744static int f_flush (lua_State *L) {

Callers

nothing calls this directly

Calls 2

getiofileFunction · 0.85
luaL_fileresultFunction · 0.85

Tested by

no test coverage detected