home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd3.lzh
/
SBPROLOG2.2
/
PROG
/
getenv.P
Wrap
Text File
|
1991-08-10
|
304b
|
11 lines
/* this gets an environment variable value.
For example getenv('SIMPATH',V) results in V being bound to a buffer
containing the simpath variable. */
getenv(Name,Val) :-
alloc_heap(4,Argbuff),alloc_heap(4,Retbuff),
ptoc(str,Name,Argbuff,0,4),
brocall(2,Argbuff,Retbuff),
ctop(str,Val,Retbuff,0,4).