MCPcopy Create free account
hub / github.com/NetHack/NetHack / rename

Function rename

outdated/sys/wince/celib.c:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323int __cdecl rename(const char *oldname, const char *newname)
324{
325 WCHAR f1[MAX_PATH + 1];
326 WCHAR f2[MAX_PATH + 1];
327 ZeroMemory(f1, sizeof(f1));
328 ZeroMemory(f2, sizeof(f2));
329 MultiByteToWideChar(CP_ACP, 0, oldname, -1, f1, MAX_PATH);
330 MultiByteToWideChar(CP_ACP, 0, newname, -1, f2, MAX_PATH);
331 return !MoveFile(f1, f2);
332}
333
334int __cdecl access(const char *path, int mode)
335{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected