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

Function io_tmpfile

depends/lua/src/liolib.c:288–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288static int io_tmpfile (lua_State *L) {
289 LStream *p = newfile(L);
290 p->f = tmpfile();
291 return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1;
292}
293
294
295static 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