Home
last modified time | relevance | path

Searched refs:newenvptr (Results 1 – 1 of 1) sorted by relevance

/reactos/sdk/lib/crt/misc/
H A Denviron.c154 char **envptr, **newenvptr, **newenv; in DuplicateEnvironment() local
159 newenvptr = newenv = malloc(count * sizeof(char*)); in DuplicateEnvironment()
163 for (envptr = original_environment; count > 1; newenvptr++, count--) in DuplicateEnvironment()
166 *newenvptr = (char*)_wcsdup((wchar_t*)*envptr++); in DuplicateEnvironment()
168 *newenvptr = _strdup(*envptr++); in DuplicateEnvironment()
169 if (*newenvptr == NULL) in DuplicateEnvironment()
171 for (newenvptr--; newenvptr >= newenv; newenvptr--) in DuplicateEnvironment()
172 free(*newenvptr); in DuplicateEnvironment()
177 *newenvptr = NULL; in DuplicateEnvironment()