How do I get the executing program's directory in C using a plataform independent method?
Posted
by Thiado de Arruda
on Stack Overflow
See other posts from Stack Overflow
or by Thiado de Arruda
Published on 2010-06-11T13:05:18Z
Indexed on
2010/06/11
13:22 UTC
Read the original article
Hit count: 183
I develop my app in linux for both unix and win32(cross compile at each build) plataforms, so a ready to use function would be nice :). I'm using glib that has the 'gchar* g_get_current_dir(void)' function and it returns the current directory, but what I really need is the executable's dir. I'm inexperienced in C programming so any sugestions are welcome.
© Stack Overflow or respective owner