p*******n 发帖数: 1 | 1 Hi,
How to get module path using c under unix? I.E, I have an
executable file pop3 under directory /home/ouc/util, and
/home/ouc/util is added to PATH. So I can run pop3 anyway.
The problem is, pop3 needs to read some file which is under
the same directory as pop3, if I start pop3 at a directory
different from /home/ouc/util, say /home/ouc, how does pop3
get the directory where it itself resides? By the way,
getcwd doesn't work. I know how to do this, by calling
GetModuleName, under windows, but |
|