Gets the login name. Format #include <unistd.h> char *getlogin (void); int *getlogin_r (char *name, size_t namesize);