Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
842 B

/***
*noenv.c - stub out CRT's environment string processing
*
* Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Stub out the environment string processing normally carried out at
* during startup. Note, getenv, _putenv and _environ are not supported
* if this object is used. Nor is the third argument to main.
*
*Revision History:
* 05-05-97 GJF Created.
* 03-27-01 PML _[w]setenvp now returns an int (vs7#231220)
*
*******************************************************************************/
#include <stdlib.h>
int __cdecl _setenvp(void) { return 0; }
void * __cdecl __crtGetEnvironmentStringsA(void) { return NULL; }
int __cdecl _wsetenvp(void) { return 0; }
void * __cdecl __crtGetEnvironmentStringsW(void) { return NULL; }