summaryrefslogtreecommitdiff
path: root/gobject-introspection/grealpath.h
blob: ca88190bcd7aae5db1f3312684e9d0670d7da24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __G_REALPATH_H__
#define __G_REALPATH_H__

/**
 * g_realpath:
 *
 * this should be a) filled in for win32 and b) put in glib...
 */
	
static inline gchar*
g_realpath (const char *path)
{
	char buffer [PATH_MAX];
	if (realpath(path, buffer))
		return g_strdup(buffer);
	else
		return NULL;
}

#endif