summaryrefslogtreecommitdiff
path: root/src/bin/e_user.c
blob: bfcd8dd0e473e123a43f10171a6f1d2c30f7f675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "e.h"

/* externally accessible functions */
char *
e_user_homedir_get(void)
{
   char *homedir;
   
   homedir = getenv("HOME");
   if (!homedir) return strdup("/tmp");
   return strdup(homedir);
}