x Upon successful completion, getlogin returns a pointer to a null-terminated string in a static buffer. 0 Indicates successful completion of getlogin_r. NULL Indicates an error; errno is set.