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

Function os_rename

depends/lua/src/loslib.c:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159static int os_rename (lua_State *L) {
160 const char *fromname = luaL_checkstring(L, 1);
161 const char *toname = luaL_checkstring(L, 2);
162 return luaL_fileresult(L, rename(fromname, toname) == 0, NULL);
163}
164
165
166static int os_tmpname (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.85

Tested by

no test coverage detected