15 inline std::vector<const char *>
tokenize (
const char * str)
17 std::cout <<
"\e[1m" << str <<
"\e[0m" << std::endl;
20 char *
cmd =
new char[strlen(str)+1];
24 std::vector<const char *>
args;
25 for (
char * arg = strtok(
cmd,
" ");
27 arg = strtok(NULL,
" "))
28 args.push_back(std::move(arg));