mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
36 lines
520 B
Plaintext
36 lines
520 B
Plaintext
NAME
|
|
getenv - get an environment variable
|
|
|
|
SYNOPSIS
|
|
getenv(env)
|
|
|
|
TYPES
|
|
env str
|
|
|
|
return str or nil
|
|
|
|
DESCRIPTION
|
|
This function returns the value of the environment variable named by
|
|
the string env. If no such environment variable exists, nil is returned.
|
|
|
|
EXAMPLE
|
|
> putenv("name", "value")
|
|
0
|
|
> getenv("name")
|
|
"value"
|
|
> putenv("name=val2")
|
|
0
|
|
> getenv("name")
|
|
"val2"
|
|
> isnull(getenv("unknown"))
|
|
1
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
putenv
|