utils/system.h file

Contents

System utils.

Functions

auto system_run_cmd(const char* cmd, long ms_timer) -> int
Runs the given command in the background, waits for it to finish and returns its exit code.
auto system_get_cmd_output(char** argv, long ms_timer, bool always_wait) -> char*
Runs the command and returns the output, or NULL.