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

Function io_fclose

lib/lua/src/liolib.c:246–250  ·  view source on GitHub ↗

** function to close regular files */

Source from the content-addressed store, hash-verified

244** function to close regular files
245*/
246static int io_fclose (lua_State *L) {
247 LStream *p = tolstream(L);
248 errno = 0;
249 return luaL_fileresult(L, (fclose(p->f) == 0), NULL);
250}
251
252
253static LStream *newfile (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.85

Tested by

no test coverage detected