01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CUSERID ( 3S ) CUSERID ( 3S )<br />

NAME<br />

cuserid - get character login name of the user<br />

SYNOPSIS<br />

#include <br />

char *cuserid (s)<br />

char *s;<br />

DESCRWTION<br />

Cu8erid generates a character-string representation of the login<br />

name of the owner of the current process. If 8 is a NULL pointer,<br />

this representation is generated in an internal static area, the<br />

address of which is returned. Otherwise, s is assumed to point to<br />

an array of at least L_cuserid characters; the representation is<br />

left in this array. The constant L_cuserid is defined in the<br />

header file.<br />

DIAGNOSTICS<br />

If the login name cannot be found, cu8erid returns a NULL<br />

pointer; if 8 is not a NULL pointer, a null character (\0) will be<br />

placed at 8{0/ .<br />

SEE ALSO<br />

getlogin(3C), getpwent(3C).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!