home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / v1 / setenv.txh < prev   
Encoding:
Text File  |  1996-02-04  |  508 b   |  20 lines

  1. @node setenv, stdlib
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. int setenv(const char *name, const char *value, int rewrite);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function sets the environment variable @var{name} to @var{value}.
  13. If @var{rewrite} is set, then this function will replace any existing
  14. value.  If it is not set, it will only put the variable into the environment
  15. if that variable isn't already defined.
  16.  
  17. @subheading Return Value
  18.  
  19. Zero on success, -1 on failure.
  20.