#include <precomp.h>
#include <stdlib.h>
#include <string.h>
#include <tchar.h>
Go to the source code of this file.
◆ MK_STR
◆ sT
◆ _tsearchenv()
Definition at line 27 of file senv.c.
28{
33
35
40 }
45 return;
46 }
49 }
50 return;
51}
static LPCWSTR LPCWSTR LPCWSTR env
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
◆ _tsearchenv_s()
Definition at line 56 of file senv.c.
57{
60
63 {
66 }
67
69
70
72 {
75 return 0;
76 }
77
78
80 if (!envVal)
81 {
84 }
85
86 penv = envVal;
87
88 do
89 {
91
93 if (penv ==
end || !*penv)
94 {
97 }
99 if (curPath[
end - penv] !=
'/' && curPath[
end - penv] !=
'\\')
100 {
101 curPath[
end - penv] =
'\\';
102 curPath[
end - penv + 1] =
'\0';
103 }
104 else
105 curPath[
end - penv] =
'\0';
106
109 {
111 {
114 }
116 return 0;
117 }
119 } while(1);
120
121}
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
#define memcpy(s1, s2, n)
#define MSVCRT_INVALID_PMT(x)
#define MSVCRT_CHECK_PMT(x)
void _dosmaperr(unsigned long oserrcode)
_CRTIMP int *__cdecl _errno(void)
errno_t __cdecl _set_errno(_In_ int _Value)
#define INVALID_FILE_ATTRIBUTES
DWORD WINAPI GetLastError(void)
#define GetFileAttributes