blob: ae8d21d858df414d74e37b9ca8a2ee9c9b916437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* mkdir.c: mkdir implementation for WinCE.
*
* This file has no copyright assigned and is placed in the Public
* Domain. This file is a part of the mingw32ce package. No
* warranty is given; refer to the file DISCLAIMER within the package.
*
* Written by Pedro Alves <pedro_alves@portugalmail.pt> 24 Jun 2007
*
*/
#include <windows.h>
#include <io.h>
int
_mkdir (const char *dirname)
{
wchar_t dirnamew[MAX_PATH];
mbstowcs (dirnamew, dirname, MAX_PATH);
if (!CreateDirectoryW (dirnamew, NULL))
return -1;
return 0;
}
int
mkdir (const char *dirname)
{
return _mkdir (dirname);
}
|