MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / io_fclose

Function io_fclose

extlibs/lua/src/liolib.c:234–238  ·  view source on GitHub ↗

** function to close regular files */

Source from the content-addressed store, hash-verified

232** function to close regular files
233*/
234static int io_fclose (lua_State *L) {
235 LStream *p = tolstream(L);
236 int res = fclose(p->f);
237 return luaL_fileresult(L, (res == 0), NULL);
238}
239
240
241static LStream *newfile (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.70

Tested by

no test coverage detected