mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-07 13:54:33 +00:00
22 lines
481 B
C
22 lines
481 B
C
|
#ifndef UTILITIES_H
|
||
|
#define UTILITIES_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
int ChildProcess(std::string program, std::vector<std::string> args, int timeout);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @brief CheckExecutable
|
||
|
* @param program
|
||
|
* @return true if "program" exists in the $PATH and is executable.
|
||
|
*/
|
||
|
bool CheckExecutable(std::string program);
|
||
|
|
||
|
|
||
|
std::vector<std::string> SplitArguments(std::string str);
|
||
|
std::vector<std::string> SplitArguments(std::vector<std::string> strs);
|
||
|
|
||
|
#endif // UTILITIES_H
|