I cannot for the life of me figure out how to detect the current directory my C application is executing from!
It is simply driving me nuts.
For now I've resorted to a really gross workaround.
Calling System with the command "echo %cd% > dir.txt"
then reading dir.txt to find out the directory
There MUST be a more elegant way though, no?
I've spent about 2 hours searching so far, it's been driving me up the wall!