t3x.org / t3x / t3x-manual / 326.html
 
T3X - A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
 
Previous:
3.2.5 GETARG
TOC | Index | Back Next:
3.2.7 MEMCOMP

3.2.6 GETENV

T.GETENV(name, buffer, size) ! Str,Str,Num => Num

Retrieve the value of the environment variable 'name' and store up to 'size'-1 chararacters of its value in 'buffer'. Append a NUL character to the text in 'buffer'.

GETENV returns the number of characters copied. A return code of -1 indicates that a non-existant variable name has been specified.

See also: GETARG

Previous:
3.2.5 GETARG
TOC | Index | Back Next:
3.2.7 MEMCOMP