GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
db/dbmi_base/whoami.c
Go to the documentation of this file.
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <grass/gis.h>
4 
11 char *db_whoami()
12 {
13  char *userid = G_store(getenv("LOGNAME"));
14 
15  return userid;
16 }
char * G_store(const char *s)
Copy string to allocated memory.
Definition: store.c:32
char * getenv()
char * db_whoami()