Lines Matching refs:cnt
120 int cnt, def; in randomize_choice_values() local
133 cnt = 0; in randomize_choice_values()
135 cnt++; in randomize_choice_values()
141 def = rand() % cnt; in randomize_choice_values()
143 cnt = 0; in randomize_choice_values()
145 if (def == cnt++) { in randomize_choice_values()
175 int i, cnt; in conf_set_all_new_symbols() local
249 cnt = rand() % 100; in conf_set_all_new_symbols()
251 if (cnt < pty) in conf_set_all_new_symbols()
253 else if (cnt < pty + ptm) in conf_set_all_new_symbols()
255 } else if (cnt < pby) in conf_set_all_new_symbols()
484 int cnt, def; in conf_choice() local
488 cnt = def = 0; in conf_choice()
497 cnt++; in conf_choice()
499 def = cnt; in conf_choice()
503 printf(" %d. %s", cnt, menu_get_prompt(child)); in conf_choice()
511 if (cnt == 1) { in conf_choice()
515 printf("[1-%d?]: ", cnt); in conf_choice()
520 cnt = def; in conf_choice()
521 printf("%d\n", cnt); in conf_choice()
534 cnt = def; in conf_choice()
536 cnt = atoi(line); in conf_choice()
548 if (!--cnt) in conf_choice()