user-name

Function

Package: system

Arguments:

Returns a string identifying the user name of the user running Lisp. This function works on all platforms. On UNIX platforms,

(or (sys:getenv "USER") (sys:getenv
"LOGNAME"))

is called and the result returned. On Windows, GetUserName() is called.

The behavior on Windows when there is no user name (that is whether nil or the empty string or something else is returned) is undefined since the MS documentation is unclear on this point.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.