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

Function io_tmpfile

extlibs/lua/src/liolib.c:287–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286
287static int io_tmpfile (lua_State *L) {
288 LStream *p = newfile(L);
289 p->f = tmpfile();
290 return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1;
291}
292
293
294static FILE *getiofile (lua_State *L, const char *findex) {

Callers

nothing calls this directly

Calls 2

newfileFunction · 0.85
luaL_fileresultFunction · 0.70

Tested by

no test coverage detected