CUSERID(3S) DOMAIN/IX SYS5 CUSERID(3S)
NAME
cuserid - get character log-in name of the user
USAGE
#include <stdio.h>
char *cuserid(s)
char *s;
DESCRIPTION
Cuserid generates a character-string representation of the
log-in name of the current process's owner. If s is a NULL
pointer, this representation is generated in an internal
static area. Cuserid then returns the address of the area.
Otherwise, s is assumed to point to an array of at least
L_cuserid characters; the representation is left in this
array. The constant L_cuserid is defined in the <stdio.h>
header file.
DIAGNOSTICS
If the log-in 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].
RELATED INFORMATION
getlogin(3C), getpwent(3C)
Printed 12/4/86 CUSERID-1