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: Boudewijn Dekker
11 #include <msvcrt/io.h>
14 #include <msvcrt/msvcrtdbg.h>
17 int _unlink(const char *filename)
20 DPRINT("_unlink('%s')\n", filename);
21 if (!DeleteFileA(filename))
23 DPRINT("%d\n", result);
27 int _wunlink(const wchar_t *filename)
29 DPRINT("_wunlink('%S')\n", filename);
30 if (!DeleteFileW(filename))