#include "precomp.h"
#include <direct.h>
Go to the source code of this file.
◆ PSETLOCAL
◆ SETLOCAL
◆ cmd_endlocal()
Definition at line 110 of file setlocal.c.
111{
116
118 {
119
121 return 0;
122 }
123
124
126 return 0;
128
131
132
133
134
136 if (Environ)
137 {
139 {
141 continue;
145 }
147 }
148
149
151 {
153 continue;
157 }
158
159
162 {
164 }
166
169 return 0;
170}
#define ConOutPuts(szStr)
LPTSTR DuplicateEnvironment(VOID)
struct _SETLOCAL * setlocal
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define GetEnvironmentVariable
#define SetEnvironmentVariable
Referenced by ExitBatch().
◆ cmd_setlocal()
Definition at line 42 of file setlocal.c.
43{
47
49 {
50
52 return 0;
53 }
54
55
57 return 0;
58
60 if (!Saved)
61 {
62 WARN(
"Cannot allocate memory for Saved!\n");
64 return 1;
65 }
66
69 {
72 return 1;
73 }
74
75
76
77
79
82
85
87
90 {
99 else
100 {
102 break;
103 }
104 }
106
108}
LPTSTR * splitspace(LPTSTR, LPINT)
VOID error_out_of_memory(VOID)
VOID error_invalid_parameter_format(PCTSTR s)
static VOID freep(LPSTR *p)
_Check_return_ _CRTIMP int __cdecl _getdrive(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ DuplicateEnvironment()
Definition at line 25 of file setlocal.c.
26{
29
30 if (!Environ)
return NULL;
31
32 for (End = Environ; *End; End +=
_tcslen(End) + 1) ;
34
35 if (EnvironCopy)
36 memcpy(EnvironCopy, Environ, (End + 1 - Environ) *
sizeof(
TCHAR));
37
39 return EnvironCopy;
40}
#define memcpy(s1, s2, n)
#define FreeEnvironmentStrings
LPSTR WINAPI GetEnvironmentStrings(void)
Referenced by _tmain(), cmd_endlocal(), and cmd_setlocal().