Home
last modified time | relevance | path

Searched refs:ctoken (Results 1 – 2 of 2) sorted by relevance

/third_party/toybox/toys/pending/
Dcrontab.c89 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()
Dcrond.c165 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()