From 6107d639956e18448a2144d63f2d53f72cfc733e Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 9 Sep 2006 00:11:28 +1000 Subject: [PATCH] Add wmkdir function darcs-hash:20060908141128-ac50b-9b67d1c5af9f746be18509bad3a0e8988efce29a.gz --- wutil.c | 5 +++++ wutil.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/wutil.c b/wutil.c index b939c10df..060547400 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 9a802ba11..0f3501731 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