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

Function io_tmpfile

lib/lua/src/liolib.c:303–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302
303static int io_tmpfile (lua_State *L) {
304 LStream *p = newfile(L);
305 errno = 0;
306 p->f = tmpfile();
307 return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1;
308}
309
310
311static 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