summaryrefslogtreecommitdiff
path: root/wince/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'wince/fileops.c')
-rw-r--r--wince/fileops.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/wince/fileops.c b/wince/fileops.c
deleted file mode 100644
index b0617bd3..00000000
--- a/wince/fileops.c
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// "Extension" implementation of ANSI C file functions for Windows CE.
-//
-// I (Simon Howard) release this file to the public domain.
-//
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <windows.h>
-
-#include "fileops.h"
-
-int remove(const char *pathname)
-{
- wchar_t temp[MAX_PATH + 1];
-
- MultiByteToWideChar(CP_OEMCP,
- 0,
- pathname,
- strlen(pathname) + 1,
- temp,
- MAX_PATH);
-
- return DeleteFileW(temp) != 0;
-}
-
-int rename(const char *oldpath, const char *newpath)
-{
- wchar_t oldpath1[MAX_PATH + 1];
- wchar_t newpath1[MAX_PATH + 1];
-
- MultiByteToWideChar(CP_OEMCP,
- 0,
- oldpath,
- strlen(oldpath) + 1,
- oldpath1,
- MAX_PATH);
- MultiByteToWideChar(CP_OEMCP,
- 0,
- newpath,
- strlen(newpath) + 1,
- newpath1,
- MAX_PATH);
-
- return MoveFileW(oldpath1, newpath1);
-}
-