Manpage of 'cuserid' on UHLU - BSD System Documentation,
Programming Reference, Manual Pages and Source Code
All manual pages         All RFC pages
Common page
for cuserid
Other pages
for cuserid
More pages
containing cuserid

Section 3 manual page or howto for 'cuserid'  

CUSERID(3)	       FreeBSD Library Functions Manual 	    CUSERID(3)

NAME
     cuserid -- get user name associated with effective UID

LIBRARY
     Compatibility Library (libcompat, -lcompat)

SYNOPSIS
     #include <stdio.h>

     char *
     cuserid(char *s);

DESCRIPTION
     The 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 VALUES
     The 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 ALSO
     geteuid(2), getpwuid(3)

FreeBSD 7.2			April 10, 1995			   FreeBSD 7.2

NAME - LIBRARY - SYNOPSIS - DESCRIPTION - RETURN VALUES - SEE ALSO -  
All manual pages         All RFC pages
Common page
for cuserid
Other pages
for cuserid
More pages
containing cuserid
A random manual page         All manual pages        All RFC pages