Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

getenv(3F)

Name

getenv - get value of environment variables

Synopsis

subroutine getenv (ename, evalue)
character*(*) ename, evalue

Description

The getenv subroutine searches the environment list (see environ(5)) for a string of the form ename=value and returns value in evalue if such a string is present; otherwise, it fills evalue with blanks.

If evalue is too short to hold the complete string value, the string is truncated to fit in evalue.

Files

libfui.a

See also

execve(2), environ(5)