Lines Matching refs:tok
195 char *tok = strtok(buf, " ");
199 for (; tok != NULL; tok = strtok(NULL, " ")) {
201 if (strcmp(tok, "--quit") == 0)
204 if (strcmp(tok, "--hold") == 0) {
211 if (strcmp(tok, kval[i].opt) == 0) {
220 if (islower(tok[0])) {
221 report[2 + key++] = (tok[0] - ('a' - 0x04));
226 if (strcmp(tok, kmod[i].opt) == 0) {
234 fprintf(stderr, "unknown option: %s\n", tok);
248 char *tok = strtok(buf, " ");
251 for (; tok != NULL; tok = strtok(NULL, " ")) {
253 if (strcmp(tok, "--quit") == 0)
256 if (strcmp(tok, "--hold") == 0) {
262 if (strcmp(tok, mmod[i].opt) == 0) {
269 if (!(tok[0] == '-' && tok[1] == '-') && mvt < 2) {
271 report[1 + mvt++] = (char)strtol(tok, NULL, 0);
273 fprintf(stderr, "Bad value:'%s'\n", tok);
279 fprintf(stderr, "unknown option: %s\n", tok);
299 char *tok = strtok(buf, " ");
308 for (; tok != NULL; tok = strtok(NULL, " ")) {
310 if (strcmp(tok, "--quit") == 0)
314 if (strcmp(tok, jmod[i].opt) == 0) {
321 if (!(tok[0] == '-' && tok[1] == '-') && mvt < 3) {
323 report[mvt++] = (char)strtol(tok, NULL, 0);
325 fprintf(stderr, "Bad value:'%s'\n", tok);
331 fprintf(stderr, "unknown option: %s\n", tok);