MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / os_rename

Function os_rename

third-party/lua-5.5.0/src/loslib.c:164–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163
164static int os_rename (lua_State *L) {
165 const char *fromname = luaL_checkstring(L, 1);
166 const char *toname = luaL_checkstring(L, 2);
167 errno = 0;
168 return luaL_fileresult(L, rename(fromname, toname) == 0, NULL);
169}
170
171
172static int os_tmpname (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.70

Tested by

no test coverage detected