- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git] / reactos / lib / sdk / crt / io / unlink.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/msvcrt/io/unlink.c
5 * PURPOSE: Deletes a file
6 * PROGRAMER: Ariadne
7 * UPDATE HISTORY:
8 * 28/12/98: Created
9 */
10
11 #include <precomp.h>
12
13 #define NDEBUG
14 #include <internal/debug.h>
15
16
17 /*
18 * @implemented
19 */
20 int _unlink(const char* filename)
21 {
22 DPRINT("_unlink('%s')\n", filename);
23 if (!DeleteFileA(filename)) {
24 _dosmaperr(GetLastError());
25 return -1;
26 }
27 return 0;
28 }