18 SplitString::SplitString() :
21 for (
auto& i : argv) {
28 apply(command, splitter);
38 if (index >= 0 && index <
size()) {
39 strncpy(buf[index], (
char*)txt, MAX_ARG_LEN - 1);
40 buf[index][MAX_ARG_LEN - 1] =
'\0';
51 return (
const char**)argv;
59 for (i = 0; i < strlen(command) + 1; i++) {
60 if (at < MAX_ARG_CT) {
66 if (ch >= 32 || ch ==
'\0' || ch ==
'\n') {
67 if (ch == splitter || ch ==
'\n') {
70 if (sub_at < MAX_ARG_LEN) {
83 for (i = 0; i < MAX_ARG_CT; i++) {
85 buf[i][MAX_ARG_LEN - 1] =
'\0';