Lines Matching refs:cnt
121 int cnt, def; in randomize_choice_values() local
134 cnt = 0; in randomize_choice_values()
136 cnt++; in randomize_choice_values()
142 def = rand() % cnt; in randomize_choice_values()
144 cnt = 0; in randomize_choice_values()
146 if (def == cnt++) { in randomize_choice_values()
174 int i, cnt; in conf_set_all_new_symbols() local
248 cnt = rand() % 100; in conf_set_all_new_symbols()
250 if (cnt < pty) in conf_set_all_new_symbols()
252 else if (cnt < pty + ptm) in conf_set_all_new_symbols()
254 } else if (cnt < pby) in conf_set_all_new_symbols()
481 int cnt, def; in conf_choice() local
485 cnt = def = 0; in conf_choice()
494 cnt++; in conf_choice()
496 def = cnt; in conf_choice()
500 printf(" %d. %s", cnt, menu_get_prompt(child)); in conf_choice()
508 if (cnt == 1) { in conf_choice()
512 printf("[1-%d?]: ", cnt); in conf_choice()
517 cnt = def; in conf_choice()
518 printf("%d\n", cnt); in conf_choice()
531 cnt = def; in conf_choice()
533 cnt = atoi(line); in conf_choice()
545 if (!--cnt) in conf_choice()