:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[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 int remove(const char *fn)
9 {
10   int result = 0;
11   DPRINT("remove('%s')\n", fn);
12   if (!DeleteFileA(fn))
13     result = -1;
14   DPRINT("%d\n", result);
15   return result;
16 }
17
18 int _wremove(const wchar_t *fn)
19 {
20   DPRINT("_wremove('%S')\n", fn);
21   if (!DeleteFileW(fn))
22     return -1;
23   return 0;
24 }