Returns the user id of the currently logged on user.
char * cuserid (char * buffer);
Required Header |
<stdlib.h> |
Return Value
This function returns a pointer to the 9 character user id buffer.
Parameters
buffer
A 9 character buffer to store the userid
Remarks
The cuserid function copies the currently logged on users id into buffer. If buffer is NULL, then an internal buffer is used and a pointer to that buffer is returned.
See Also getlogin