getlogin

Gets the login name.

Format

#include  <unistd.h>

char *getlogin  (void);

Description

The getlogin function returns the login name of the user associated with the current session.

Return Values
A pointer to a null-terminated string in a static buffer. 
NULL  Indicates an error. Login name is not set.  


Previous Page | Next Page | Table of Contents | Index