home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / ENV.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  1KB  |  47 lines

  1. /*
  2.  *  env.h    Environment string operations
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef _ENV_H_INCLUDED
  7. #define _ENV_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #ifndef _WCHAR_T_DEFINED
  17. #define _WCHAR_T_DEFINED
  18. #define _WCHAR_T_DEFINED_
  19. #ifdef __cplusplus
  20. typedef long char wchar_t;
  21. #else
  22. typedef unsigned short wchar_t;
  23. #endif
  24. #endif
  25.  
  26. /*
  27.  *  POSIX 1003.1 Prototypes.
  28.  */
  29. _WCRTLINK extern int   clearenv( void );
  30. _WCRTLINK extern char *getenv( const char *__name );
  31. _WCRTLINK extern int   setenv( const char *__name, const char *__newvalue, 
  32.                   int __overwrite );
  33. #if !defined(NO_EXT_KEYS) /* extensions enabled */
  34. _WCRTLINK extern int   putenv( const char *__env_string );
  35. #endif
  36.  
  37. _WCRTLINK extern wchar_t * _wgetenv( const wchar_t *__name );
  38. _WCRTLINK extern int       _wsetenv( const wchar_t *__name,
  39.                       const wchar_t *__newvalue, 
  40.                       int __overwrite );
  41. _WCRTLINK extern int       _wputenv( const wchar_t *__env_string );
  42.  
  43. #ifdef __cplusplus
  44. };
  45. #endif
  46. #endif
  47.