CUSERID(3S) DOMAIN/IX Reference Manual (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' 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
Lcuserid characters; the representation is left in this
array. The constant Lcuserid 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 5/10/85 CUSERID-1