int tokenize(char *s, char **args, int maxargs) { int nargs; for (nargs = 0; nargs < maxargs; nargs++) { while (*s != '\0' && /*utfrune */ strchr(qsep, *s) != NULL) s++; if (*s == '\0') break; args[nargs] = s; s = qtoken(s); } return nargs; }
int tokenize(char *s, char **args, int maxargs) { int nargs; for(nargs=0; nargs<maxargs; nargs++){ while((*s!='\0') && sep(s)) s++; if(*s == '\0') break; args[nargs] = s; s = qtoken(s, qsep); } return nargs; }
int tokenize(char *s, char **args, int maxargs) { int nargs; for(nargs=0; nargs<maxargs; nargs++){ while(*s!='\0' && utfrune(qsep, *s)!=nil) s++; if(*s == '\0') break; args[nargs] = s; s = qtoken(s, qsep); } return nargs; }