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

Function os_rename

third-party/lua-5.2.4/src/loslib.c:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98static int os_rename (lua_State *L) {
99 const char *fromname = luaL_checkstring(L, 1);
100 const char *toname = luaL_checkstring(L, 2);
101 return luaL_fileresult(L, rename(fromname, toname) == 0, NULL);
102}
103
104
105static int os_tmpname (lua_State *L) {

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.70

Tested by

no test coverage detected