whoami.c File Reference

#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <grass/gis.h>

Include dependency graph for whoami.c:

Go to the source code of this file.

Functions

char * G_whoami (void)
 user's name


Function Documentation

char* G_whoami ( void   ) 

user's name

Returns a pointer to a string which is the user's login name.

Parameters:
~ 
Returns:
char *

Definition at line 34 of file whoami.c.

References G_store(), getenv(), name, and NULL.

Referenced by G_short_history().


Generated on Sun Apr 6 17:32:26 2008 for GRASS by  doxygen 1.5.5