The environment the process was started with. The library never changes it, so the value getenv finds stays put while it is copied; foreign code that calls setenv or putenv while another thread reads here breaks that.
Functions
variable | The value of the environment variable name, any byte view, copied into a buffer of its own; None when it is unset, or when name holds a NUL or an =, which no variable's name does. |
Function declarations
fn variablesource
forall C, S where ReadBytes[C, S], Copy[S].
fn variable(&cx: C, name: S) -> Option[Buffer!] { ... }
The value of the environment variable name, any byte view, copied into a buffer of its own; None when it is unset, or when name holds a NUL or an =, which no variable's name does.