| 157 | |
| 158 | |
| 159 | static 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 | |
| 166 | static int os_tmpname (lua_State *L) { |
nothing calls this directly
no test coverage detected