Possible Duplicate:
C/C++: How to obtain the full path of current directory?
It is simple to figure out the directory which a bash script resides in, but I'm wondering if it is true for a c binary code.
Possible Duplicate:
C/C++: How to obtain the full path of current directory?
It is simple to figure out the directory which a bash script resides in, but I'm wondering if it is true for a c binary code.