2 // "Extension" implementation of ANSI C file functions for Windows CE.
4 // I (Simon Howard) release this file to the public domain.
15 int remove(const char *pathname
)
17 wchar_t temp
[MAX_PATH
+ 1];
19 MultiByteToWideChar(CP_OEMCP
,
26 return DeleteFileW(temp
) != 0;
29 int rename(const char *oldpath
, const char *newpath
)
31 wchar_t oldpath1
[MAX_PATH
+ 1];
32 wchar_t newpath1
[MAX_PATH
+ 1];
34 MultiByteToWideChar(CP_OEMCP
,
40 MultiByteToWideChar(CP_OEMCP
,
47 return MoveFileW(oldpath1
, newpath1
);