logname(S)
logname --
return login name of user
Syntax
cc ... -lPW
char *logname ()
Description
The logname function
returns a pointer to the null-terminated login name;
it extracts the LOGNAME environment
variable from the user's environment.
Files
/etc/profile
Notes
The return values point to static data
whose content is overwritten by each call.
This method of determining a login name is subject to forgery.
See also
env(C),
environ(M),
getenv(S),
login(M),
profile(M)
Standards conformance
logname is not part of any
currently supported standard;
it was developed by UNIX System Laboratories, Inc. and
is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003