DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getenv(S)


getenv -- return value for environment name

Synopsis

   #include <stdlib.h>
   

char *getenv(const char *name);

Description

getenv searches the environment list [see environ(M)] for a string of the form name=value and, if the string is present, returns a pointer to the value in the current environment. Otherwise, it returns a null pointer.

References

environ(M), exec(S), putenv(S)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005