1
0

noenv.c 749 B

123456789101112131415161718192021222324252627
  1. /***
  2. *noenv.c - stub out CRT's environment string processing
  3. *
  4. * Copyright (c) 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. *******************************************************************************/
  12. #include <stdlib.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. int __cdecl _setenvp(void) { return 0; }
  17. void * __cdecl __crtGetEnvironmentStringsA(void) { return NULL; }
  18. int __cdecl _wsetenvp(void) { return 0; }
  19. void * __cdecl __crtGetEnvironmentStringsW(void) { return NULL; }
  20. #ifdef __cplusplus
  21. }
  22. #endif