home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdlib / getenv.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  430 b   |  25 lines

  1. @node getenv, environment
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. char *getenv(const char *name);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. Get the setting of the environment variable @var{name}.  Do not alter or
  13. free the returned value. 
  14.  
  15. @subheading Return Value
  16.  
  17. The value, or @code{NULL} if that variable does not exist.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. char *term = getenv("TERM");
  23. @end example
  24.  
  25.