helpers: add a function to find an executable in $PATH

This commit is contained in:
Stefan Seyfried
2014-01-26 16:09:48 +01:00
committed by Thilo Graf
parent 6e92392e11
commit e37e425674
2 changed files with 31 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ bool get_fs_usage(const char * dir, uint64_t &btotal, uint64_t &bused, long *bsi
bool get_mem_usage(unsigned long &total, unsigned long &free);
void mySleep(int sec);
std::string find_executable(const char *name);
std::string getPathName(std::string &path);
std::string getBaseName(std::string &path);
std::string getFileName(std::string &file);