MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / os_rename

Function os_rename

extlibs/lua/src/loslib.c:160–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.70

Tested by

no test coverage detected