MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / io_tmpfile

Function io_tmpfile

3rd/lua-5.4.3/src/liolib.c:301–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299
300
301static int io_tmpfile (lua_State *L) {
302 LStream *p = newfile(L);
303 p->f = tmpfile();
304 return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1;
305}
306
307
308static FILE *getiofile (lua_State *L, const char *findex) {

Callers

nothing calls this directly

Calls 2

newfileFunction · 0.85
luaL_fileresultFunction · 0.85

Tested by

no test coverage detected