Home | History | Annotate | Download | only in lib

Lines Matching defs:choice

84 	int choice, usedef;
86 choice = -1;
90 choice = def;
93 choice = (*input) - 'A';
95 choice = (*input) - 'a';
97 choice = atoi(input) - 1;
98 if (choice < 0 || choice >= bootcfg_info.nummenu)
99 choice = -1;
104 choice = -1;
106 return choice;
110 docommandchoice(int choice)
114 ic = bootcfg_info.command[choice];
140 int choice;
154 for (choice = 0; choice < bootcfg_info.nummenu;
155 choice++)
156 printf(" %c. %s\n", choice + 'A',
157 bootcfg_info.desc[choice]);
160 for (choice = 0; choice < bootcfg_info.nummenu;
161 choice++)
163 (choice < 9) ? " " : "",
164 choice + 1,
165 bootcfg_info.desc[choice]);
168 choice = -1;
181 choice = getchoicefrominput(input, bootcfg_info.def);
183 choice = bootcfg_info.def;
195 choice = getchoicefrominput(input, bootcfg_info.def);
197 if (choice == -1)
200 if (choice < 0)
202 if (!strcmp(bootcfg_info.command[choice], "prompt") &&
208 docommandchoice(choice);