mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Add wmkdir function
darcs-hash:20060908141128-ac50b-9b67d1c5af9f746be18509bad3a0e8988efce29a.gz
This commit is contained in:
parent
eafa0a7169
commit
6107d63995
2 changed files with 9 additions and 0 deletions
5
wutil.c
5
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 );
|
||||
}
|
||||
|
|
4
wutil.h
4
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
|
||||
|
|
Loading…
Reference in a new issue