Searched refs:ctoken (Results 1 – 3 of 3) sorted by relevance
/external/toybox/toys/posix/ |
D | cut.c | 74 char *ctoken = strsep(&list, ","), *dtoken; in parse_list() local 77 if (!ctoken) break; in parse_list() 78 if (!*ctoken) continue; in parse_list() 81 if (*(dtoken = strsep(&ctoken, "-"))) { in parse_list() 87 if (!ctoken) end = -1; //case e.g. 1,2,3 in parse_list() 88 else if (*ctoken) {//case e.g. N-M in parse_list() 89 end = atolx_range(ctoken, 0, INT_MAX); in parse_list()
|
/external/toybox/toys/pending/ |
D | crontab.c | 89 char *ctoken = strsep(&src, ","), *dtoken; in validate_component() local 91 if (!ctoken) break; in validate_component() 92 if (!*ctoken) return 1; in validate_component() 95 dtoken = strsep(&ctoken, "-"); in validate_component() 101 if (!ctoken) { in validate_component() 104 else if (*ctoken) {// e.g. N-M in validate_component() 105 if (isdigit(*ctoken)) { in validate_component() 106 if (getval(ctoken, min, (min ? max : max-1)) < 0) return 1; in validate_component() 107 } else if (getindex(ctoken, max) < 0) return 1; in validate_component()
|
D | crond.c | 165 char *ctoken = strsep(&src, ","), *dtoken; in parse_and_fillarray() local 167 if (!ctoken) break; in parse_and_fillarray() 168 if (!*ctoken) goto ERROR; in parse_and_fillarray() 171 dtoken = strsep(&ctoken, "-"); in parse_and_fillarray() 178 if (!ctoken) end = -1; // e.g. N1,N2,N3 in parse_and_fillarray() 179 else if (*ctoken) {// e.g. N-M in parse_and_fillarray() 180 if (isdigit(*ctoken)) { in parse_and_fillarray() 181 if ((end = getval(ctoken, min, (min ? max : max-1))) < 0) goto ERROR; in parse_and_fillarray() 183 } else if ((end = getindex(ctoken, max)) < 0) goto ERROR; in parse_and_fillarray()
|