update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / remove.c
1 #include <windows.h>
2 #include <msvcrt/stddef.h>
3 #include <msvcrt/stdio.h>
4
5 #define NDEBUG
6 #include <msvcrt/msvcrtdbg.h>
7
8 /*
9  * @implemented
10  */
11 int remove(const char *fn)
12 {
13   int result = 0;
14   DPRINT("remove('%s')\n", fn);
15   if (!DeleteFileA(fn))
16     result = -1;
17   DPRINT("%d\n", result);
18   return result;
19 }
20
21 /*
22  * @implemented
23  */
24 int _wremove(const wchar_t *fn)
25 {
26   DPRINT("_wremove('%S')\n", fn);
27   if (!DeleteFileW(fn))
28     return -1;
29   return 0;
30 }