2 #include <msvcrt/stdlib.h>
3 #include <msvcrt/string.h>
6 #include <msvcrt/msvcrtdbg.h>
8 void _searchenv(const char *file
,const char *var
,char *path
)
10 char *env
= getenv(var
);
15 DPRINT("_searchenv()\n");
24 if ( SearchPathA(x
,file
,NULL
,MAX_PATH
,path
,&FilePart
) > 0 ) {
33 void _wsearchenv(const wchar_t *file
,const wchar_t *var
,wchar_t *path
)
35 wchar_t *env
= _wgetenv(var
);
40 DPRINT("_searchenw()\n");
49 if ( SearchPathW(x
,file
,NULL
,MAX_PATH
,path
,&FilePart
) > 0 ) {