DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getenv(3C)


getenv -- return value for environment name

Synopsis

   #include <stdlib.h>
   

char *getenv(const char *name);

Description

getenv searches the environment list [see environ(5)] 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(5), exec(2), putenv(3C)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004