Get user home directory

Name

ggGetUserDir : Get user home directory

Synopsis

#include <ggi/gg.h>

const char * ggGetUserDir(void);

Description

ggGetUserDir returns a path to the user's home directory, whatever it can be on a given system. On unix systems it will be the HOME environment variable.

Return value

ggGetUserDir returns a NULL-terminated string holding the path the the current user home directory. This string is just a reference and must not be freed.