Handbook
Glossary
set-os-envs-pointer ( malloc -- )
Environment variables
Prev:
change-os-env ( key quot -- )
Vocabulary
environment
Inputs
malloc
a pointer to memory from the heap obtained through
malloc
or similar
Outputs
None
Word description
Set then
environ
pointer. Factor must retain a pointer to this memory until exiting the program.
Notes
Names and values of environment variables are operating system-specific.
See also
os-env
,
os-envs
,
set-os-env
,
unset-os-env
,
set-os-envs
,
change-os-env
,
with-os-env
Definition
USING:
system
;
IN:
environment
HOOK:
set-os-envs-pointer
os
( malloc -- )
Methods
USING:
environment
environment.unix
system
;
M:
unix
set-os-envs-pointer
environ
set-void*
;