Main index | Section 3 | 日本語 | Options |
#include <stdio.h>
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.
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.
CUSERID (3) | April 10, 1995 |
Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Not only is UNIX dead, it's starting to smell really bad. | ” |
— Rob Pike |