#include <stdarg.h>
#include <internal/tls.h>
#include <internal/wine/msvcrt.h>
#include <internal/locale.h>
#include <wine/debug.h>
Go to the source code of this file.
◆ _CRT_PRECOMP_H
◆ WIN32_NO_STATUS
◆ BlockEnvToEnvironA()
Definition at line 34 of file environ.c.
35{
36 char *
ptr, *environment_strings;
37 char **envptr;
40
41 TRACE(
"BlockEnvToEnvironA()\n");
42
44 if (environment_strings ==
NULL) {
45 return -1;
46 }
47
49 {
51
54 }
55
58 {
60 {
62
64 {
66 {
67 for (envptr--; envptr >=
_environ; envptr--)
72 return -1;
73 }
76 }
77 }
78
80 }
81
84}
ACPI_SIZE strlen(const char *String)
BOOL WINAPI FreeEnvironmentStringsA(IN LPSTR EnvironmentStrings)
GLuint GLuint GLsizei count
#define memcpy(s1, s2, n)
#define GetEnvironmentStringsA
Referenced by DllMain().
◆ BlockEnvToEnvironW()
Definition at line 86 of file environ.c.
87{
88 wchar_t *
ptr, *environment_strings;
89 wchar_t **envptr;
92
93 TRACE(
"BlockEnvToEnvironW()\n");
94
96 if (environment_strings ==
NULL) {
97 return -1;
98 }
99
101 {
103
106 }
107
110 {
112 {
114
116 {
118 {
119 for (envptr--; envptr >=
_wenviron; envptr--)
124 return -1;
125 }
128 }
129 }
130
132 }
133
136}
BOOL WINAPI FreeEnvironmentStringsW(IN LPWSTR EnvironmentStrings)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LPWSTR WINAPI GetEnvironmentStringsW(void)
Referenced by DllMain().
◆ DllMain()
Definition at line 61 of file msvcrt40.c.
62{
65 {
67
68 TRACE(
"Process Attach\n");
76
77
80
83
85 {
88 }
89
92
93
95
97
98
99
100 TRACE(
"Attach done\n");
101 break;
102
104
105 break;
106
109 break;
110
113
118
119
120
126
131
136
137 TRACE(
"Detach done\n");
138 break;
139 }
140
142}
#define DLL_THREAD_DETACH
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define DLL_THREAD_ATTACH
LPSTR WINAPI GetCommandLineA(VOID)
LPWSTR WINAPI GetCommandLineW(VOID)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
MSVCRT__locale_t global_locale
void msvcrt_init_io(void)
void msvcrt_init_mt_locks(void)
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
void msvcrt_free_mt_locks(void)
void msvcrt_free_io(void)
int BlockEnvToEnvironA(void)
void FreeEnvironment(char **environment)
int BlockEnvToEnvironW(void)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
void msvcrt_free_popen_data(void)
ULONG dwOSVersionInfoSize
void msvcrt_free_tls_mem(void)
BOOL msvcrt_free_tls(void)
BOOL msvcrt_init_tls(void)
struct _OSVERSIONINFOW OSVERSIONINFOW
◆ FreeEnvironment()
void FreeEnvironment |
( |
char ** |
environment | ) |
|
Internal function to deallocate environment block. Although it's parameter are defined as char**, it's able to work also with wide character environment block which are of type wchar_t**.
- Parameters
-
environment | Environment to free. |
Definition at line 190 of file environ.c.
191{
192 char **envptr;
193 for (envptr = environment; *envptr !=
NULL; envptr++)
196}
Referenced by DllMain().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
msvcrt |
| ) |
|
◆ __initenv
◆ __winitenv
◆ _acmdln
◆ _environ
◆ _osplatform
◆ _osver
◆ _wcmdln
◆ _wenviron
◆ _winmajor
◆ _winminor
◆ _winver