SoDaRadio-5.0.3-master:8901fb5
Functions
FindHome.hxx File Reference
#include <string>

Go to the source code of this file.

Functions

std::string findHome ()
 Find the directory in which the calling program resides. More...
 

Function Documentation

◆ findHome()

std::string findHome ( )

Find the directory in which the calling program resides.

Note this feature relies on the existance of the procfs. It works under Linux. I'm not sure what I'll do for other operating systems.

Returns
string pointing to the program's directory.

Definition at line 50 of file FindHome.cxx.

Referenced by main().