mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
35
help/getenv
Normal file
35
help/getenv
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
Reference in New Issue
Block a user