cuserid() — get character login name of the user
char *cuserid(char *s);
Because this function behaved differently in previous releases of HP-UX,
and behaves differently on other systems, its use is not recommended.
It is provided only for conformance to current industry standards,
and is subject to withdrawal in future releases of HP-UX.
For portability and security, application writers and maintainers should
search their existing code and replace references to
with equivalent calls to
depending on which user name is desired.
generates a character-string representation of the
user name corresponding to the effective user
of the process.
pointer, this representation is generated in an internal static area,
the address of which is returned.
is assumed to point to an array of at least
characters; the representation is left in this array.
is defined in the
For multi-thread applications, if
pointer, the operation is not performed and a
pointer is returned.
If the login name cannot be found,
is not a
a null character
is placed at
is to be obsoleted at a future date.
cuserid(): AES, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1