next contents previous
Next: fclose (3S) Up: contents Previous: ctermid (3S)





CUSERID(3S)            STANDARD I/O PACKAGE           CUSERID(3S)


NAME
     cuserid -- get the character login name of a user


SYNOPSIS
     #include <stdio.h>

     char *cuserid(char *s);


DESCRIPTION
     cuserid  generates  a character-string representation of the
     login name under which the owner of the current  process  is
     logged  in.  If  s is a NULL pointer, this representation is
     generated in an internal static  area  and  the  address  is
     returned. Otherwise, s is assumed to point to an array of at
     least L_cusrid characters; the  representation  is  left  in
     this array. The L_cusrid constant is defined in stdio.h.


THREAD-SAFE
     - Multi-safe


RETURN VALUES
     If  the  login  name cannot be found, cuserid returns a NULL
     pointer; if s is not a NULL pointer, a null  character  (\0)
     is placed at s[0].


SEE ALSO
     getlogin(3C), getpwent(3C), pthreads(3T)

























SUPER-UX            Last change: Oct  19, 1999                  1




next contents previous
Next: fclose (3S) Up: contents Previous: ctermid (3S)

G1AB02E Programmer's Reference Manual