Lines Matching refs:cnt
126 int cnt = 0; in randomize_choice_values() local
137 cnt++; in randomize_choice_values()
140 while (cnt > 0) { in randomize_choice_values()
141 x = rand() % cnt; in randomize_choice_values()
163 cnt--; in randomize_choice_values()
178 int cnt; in conf_set_all_new_symbols() local
259 cnt = rand() % 100; in conf_set_all_new_symbols()
261 if (cnt < pty) in conf_set_all_new_symbols()
263 else if (cnt < pty + ptm) in conf_set_all_new_symbols()
265 } else if (cnt < pby) { in conf_set_all_new_symbols()
430 int cnt, def; in conf_choice() local
434 cnt = def = 0; in conf_choice()
443 cnt++; in conf_choice()
445 def = cnt; in conf_choice()
449 printf(" %d. %s (%s)", cnt, menu_get_prompt(child), in conf_choice()
458 if (cnt == 1) { in conf_choice()
462 printf("[1-%d?]: ", cnt); in conf_choice()
467 cnt = def; in conf_choice()
468 printf("%d\n", cnt); in conf_choice()
481 cnt = def; in conf_choice()
483 cnt = atoi(line); in conf_choice()
495 if (!--cnt) in conf_choice()