| 96 | |
| 97 | |
| 98 | static 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 | |
| 105 | static int os_tmpname (lua_State *L) { |
nothing calls this directly
no test coverage detected