Nyquist / XLISP 2.0 -
Contents |
Tutorials |
Examples |
Reference
get-user
Type: |
- |
function (subr) |
Source: |
- |
sys/unix/osstuff.c, sys/win/msvc/winstuff.c |
Syntax
- (get-user)
- returns - a string naming the user, or "nyquist"
Description
The 'get-user' function returns the current user name.
In Unix systems [including OS X and Linux], this
is the value of the USER environment variable. In Windows, this
is currently just "nyquist", which is also returned if the
environment variable cannot be accessed. This function is used to avoid the
case of two users creating files of the same name in the same temp
directory.
Examples
Back to Top
Nyquist / XLISP 2.0 -
Contents |
Tutorials |
Examples |
Reference