Source code of Windows XP (NT5)
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
817 B

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