1 /* $Id: wmakpath.c,v 1.1 2002/11/24 18:42:25 robd Exp $
3 #include <msvcrt/stdlib.h>
4 #include <msvcrt/string.h>
7 void _wmakepath(wchar_t* path
, const wchar_t* drive
, const wchar_t* dir
, const wchar_t* fname
, const wchar_t* ext
)
11 if ((drive
!= NULL
) && (*drive
)) {
20 dir_len
= wcslen(dir
);
21 if (dir_len
&& *(dir
+ dir_len
- 1) != L
'\\')
27 if (ext
!= NULL
&& *ext
!= 0) {