#include <unistd.h>
#include "paths.h"
-std::string get_exec_path ()
+std::string
+get_exec_path ()
{
char pBuf[256];
size_t len = sizeof (pBuf);
return exec_path.substr (0, exec_path.rfind (PATH_DELIM) + 1);
}
-std::string get_home_path ()
+std::string
+get_home_path ()
{
return (std::string) getenv ("HOME") + PATH_DELIM + "." + PROGRAM_NAME;
}
-std::set<std::string> get_dmaster_paths () {
+std::set<std::string>
+get_dmaster_paths () {
std::set<std::string> paths;
paths.insert (get_exec_path ());
paths.insert (DATA_PATH);