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

Origin commit data
------------------
Commit: e37e425674
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-26 (Sun, 26 Jan 2014)
This commit is contained in:
Stefan Seyfried
2014-01-26 16:09:48 +01:00
committed by Thilo Graf
parent d358e5149f
commit 133e7a8522
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);