MCPcopy Create free account
hub / github.com/DFHack/dfhack / io_fclose

Function io_fclose

depends/lua/src/liolib.c:233–237  ·  view source on GitHub ↗

** function to close regular files */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.85

Tested by

no test coverage detected