Query: cuserid
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUSERID(3) BSD Library Functions Manual CUSERID(3)NAMEcuserid -- get user name associated with effective UIDLIBRARYCompatibility Library (libcompat, -lcompat)SYNOPSIS#include <stdio.h> char * cuserid(char *s);DESCRIPTIONThe cuserid() function is made obsolete by getpwuid(3). The function cuserid() gets the user name associated with the effective UID of the current process. If the argument s is non-NULL, the name is copied to the buffer it points to, and that address is being returned. This buffer must provide space for at least L_cuserid characters. The L_cuserid constant is defined in <stdio.h>. If s is NULL, an internal array is used and its address will be returned.RETURN VALUESThe cuserid() function returns the address of an array in which the name has been stored. If the name associated with the effective UID of the current process could not be found, either a null pointer will be returned, or (if s is non-NULL) the buffer s will be filled with a null string.SEE ALSOgeteuid(2), getpwuid(3)BSDApril 10, 1995 BSD
Related Man Pages |
---|
cuserid(3) - redhat |
cuserid(3s) - hpux |
cuserid(3) - debian |
cuserid(3) - osf1 |
cuserid(3c) - sunos |
Similar Topics in the Unix Linux Community |
---|
Regarding cuserid() function in 'C' |
Regarding cuserid(), getlogin() and getpwuid() function in 'C' |