getlogin

Returns the user id of the currently logged on user.

char * getlogin (void);

Required Header
<stdlib.h>

Return Value

This function returns a pointer to a 9 character user id buffer.

Remarks

The getlogin function copies the currently logged on users id into an internal buffer and a pointer to that buffer is returned.

Standard Library

See Also    cuserid