aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--wutil.c5
-rw-r--r--wutil.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/wutil.c b/wutil.c
index b939c10d..06054740 100644
--- a/wutil.c
+++ b/wutil.c
@@ -544,3 +544,8 @@ wchar_t *wgetenv( const wchar_t *name )
}
+int wmkdir( const wchar_t *name, int mode )
+{
+ char *name_narrow =wutil_wcs2str(name);
+ return mkdir( name_narrow, mode );
+}
diff --git a/wutil.h b/wutil.h
index 9a802ba1..0f350173 100644
--- a/wutil.h
+++ b/wutil.h
@@ -133,5 +133,9 @@ const wchar_t *wgettext( const wchar_t *in );
*/
wchar_t *wgetenv( const wchar_t *name );
+/**
+ Wide character version of mkdir
+*/
+int wmkdir( const wchar_t *dir, int mode );
#endif