6 while (
isspace(*str) && (maxLen == 0 || skipped < maxLen))
11 maxLen = (maxLen == 0) ? 0 : (maxLen > skipped ? maxLen - skipped : 0);
20 uint64_t argvSize =
sizeof(
char*) * (argc + 1);
21 uint64_t stringsSize = totalChars + argc;
23 const char** argv = buf;
24 if (size < argvSize + stringsSize)
const char ** argsplit_buf(void *buf, uint64_t size, const char *str, uint64_t maxLen, uint64_t *count)
Standardized argument parsing function using a provided buffer.