MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / io_fclose

Function io_fclose

third-party/lua-5.2.4/src/liolib.c:203–207  ·  view source on GitHub ↗

** function to close regular files */

Source from the content-addressed store, hash-verified

201** function to close regular files
202*/
203static int io_fclose (lua_State *L) {
204 LStream *p = tolstream(L);
205 int res = fclose(p->f);
206 return luaL_fileresult(L, (res == 0), NULL);
207}
208
209
210static LStream *newfile (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.70

Tested by

no test coverage detected