C++ directory "where am I" function
Could anyone direct me on how my Linux program could know what directory it is in?
I need to write a function to return that info in c/c++. Any ideas on how I could do that?
my idea is:
char* whereami()
{
return Directory_Where_Im_At;
}
Last edited by kev000; 11-17-2006 at 03:38 PM.
|