(name: string) -> string
The value of the environment variable name, in temporary storage, or "" when it is not set.
On Windows the name and value go through UTF-16, so non-ASCII values come back as UTF-8.
assert(environment_variable("PATH").count > 0); // set on every desktop platform
assert(environment_variable("JAI_DOC_SURELY_UNSET_VARIABLE") == "");
kept := copy_string(environment_variable("PATH"));
defer free(kept);
assert(kept.count > 0);Doesn't run in the browser (skipped on wasm).