MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / os_rename

Function os_rename

lib/lua/src/loslib.c:163–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.85

Tested by

no test coverage detected