MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / os_tmpname

Function os_tmpname

other_src/lua/src/loslib.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57static int os_tmpname (lua_State *L) {
58 char buff[LUA_TMPNAMBUFSIZE];
59 int err;
60 lua_tmpnam(buff, err);
61 if (err)
62 return luaL_error(L, "unable to generate a unique filename");
63 lua_pushstring(L, buff);
64 return 1;
65}
66
67
68static int os_getenv (lua_State *L) {

Callers

nothing calls this directly

Calls 2

luaL_errorFunction · 0.70
lua_pushstringFunction · 0.70

Tested by

no test coverage detected