[ prev :: next :: up ] libgg-current (3)

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 home directory of the user executing an application, whatever it may be on a given system. For example, on unix systems it will be the contents of the HOME environment variable. If no user home exists, a suitable temporary directory is found.

Return value

ggGetUserDir returns a NULL-terminated string holding the path the the current user home directory. This string may be a reference to memory belonging to OS facilities, and must not be freed or altered.

 
[ prev :: next :: up ] libgg-current (3)
2004/03/10 22:43:57