cuserid(3S) cuserid(3S)
NAME
cuserid - generate string for user's name
SYNOPSIS
#include <stdio.h>
char *cuserid(char *s);
DESCRIPTION
cuserid() generates a character-string representation of the name
associated with the effective user ID of the current process. If s is
a null pointer, this representation is generated in an internal static
area, the address of which is returned. Otherwise, s is assumed to
point to an array of at least Lcuserid characters; the representation
is left in this array. The constant Lcuserid is defined in the
stdio.h header file.
RESULT
If the login name cannot be found, cuserid() returns a NULL pointer;
if s is not a NULL pointer, a null character \0 will be placed at
s[0]. If s is a NULL pointer and the login name can be found, the
address of a (static) buffer containing the login name is returned.
SEE ALSO
getlogin(3C), getpwent(3C).
Page 1 Reliant UNIX 5.44 Printed 11/98