Poster of Linux kernelThe best gift for a Linux geek
ggGetUserDir

ggGetUserDir

Section: GGI (3) Updated: 2005-08-26
Local index Up
 

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.

ggGetUserDir is threadsafe, but is not guaranteed to be safe to use in a thread that may be cancelled during its execution. It is also not guaranteed to be safe to use in special contexts such as LibGG task handlers, signal handlers and asyncronous procedure calls.  

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.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 21:46:50 GMT, April 16, 2011