logname(S-osr5)
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-osr5),
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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005