mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +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
|