MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / io_fclose

Function io_fclose

deps/lua/src/liolib.c:119–124  ·  view source on GitHub ↗

** function to close regular files */

Source from the content-addressed store, hash-verified

117** function to close regular files
118*/
119static int io_fclose (lua_State *L) {
120 FILE **p = tofilep(L);
121 int ok = (fclose(*p) == 0);
122 *p = NULL;
123 return pushresult(L, ok, NULL);
124}
125
126
127static int aux_close (lua_State *L) {

Callers

nothing calls this directly

Calls 1

pushresultFunction · 0.85

Tested by

no test coverage detected