getenv
- Posted by George Walters <gwalters at ?c.?r.com> May 29, 2008
- 751 views
I have set an environmental variable in XP to null. It exists but is empty. getenv returns a -1 which I would think should be {}. An empty sequence, however the function returns -1 which the doc says is undefined. It is not undefined but is a null sequence as I have set it up. Is this correct? I'm using EU 2.4 but I suspect it has not change in the current version. Syntax: x = getenv(s) Description: Return the value of an environment variable. If the variable is undefined, return -1. Comments: Because either a sequence or an atom (-1) might be returned, you should probably assign the result to a variable declared as object.