choices
getanswer(char *choices, bool def)
if (def || strchr(choices, ch) != NULL)
YELL: mvprintw(oldy + 1, 0, "Please choose one of : [%s]\n", choices);
return (*choices);
const char *choices[] = { "blowfish", "bcrypt" };
size_t maxchoice = sizeof(choices) / sizeof(choices[0]);
const char *choice = choices[i];
struct xdr_discrim *choices, /* [value, xdr proc] for each arm */
for (; choices->proc != NULL; choices++) {
if (choices->value == dscm)
return ((*(choices->proc))(xdrs, unp));
unsigned choices[2] = {};
choices[fence->ring == ring ? 0 : 1] = i;
if (choices[i]) {
vm_id->id = choices[i];
trace_radeon_vm_grab_id(choices[i], ring);
return rdev->vm_manager.active[choices[i]];
char buf[32], *spc, *choices;
choices = malloc(maxlen, M_TEMP, M_WAITOK);
*choices = '\0';
strlcat(choices, buf, maxlen);
error = sysctl_rdstring(oldp, oldlenp, newp, choices);
free(choices, M_TEMP, maxlen);
.choices = options_table_visual_bell_list,
.choices = options_table_visual_bell_list,
.choices = options_table_visual_bell_list,
.choices = options_table_allow_passthrough_list,
.choices = options_table_clock_mode_style_list,
.choices = options_table_mode_keys_list,
.choices = options_table_pane_border_indicators_list,
.choices = options_table_pane_border_lines_list,
.choices = options_table_pane_status_list,
.choices = options_table_pane_scrollbars_list,
.choices = options_table_pane_scrollbars_position_list,
.choices = options_table_popup_border_lines_list,
.choices = options_table_remain_on_exit_list,
.choices = options_table_window_size_list,
.choices = options_table_cursor_style_list,
.choices = options_table_extended_keys_list,
.choices = options_table_extended_keys_format_list,
.choices = options_table_get_clipboard_list,
.choices = options_table_popup_border_lines_list,
.choices = options_table_set_clipboard_list,
.choices = options_table_bell_action_list,
.choices = options_table_bell_action_list,
.choices = options_table_destroy_unattached_list,
.choices = options_table_detach_on_destroy_list,
.choices = options_table_message_line_list,
.choices = options_table_bell_action_list,
.choices = options_table_status_list,
.choices = options_table_status_justify_list,
.choices = options_table_status_keys_list,
.choices = options_table_status_position_list,
.choices = options_table_cursor_style_list,
.choices = options_table_cursor_style_list,
for (cp = oe->choices; *cp != NULL; cp++) {
s = xstrdup(o->tableentry->choices[ov->number]);
s = xstrdup(oe->choices[oe->default_num]);
if (oe->choices[choice + 1] == NULL)
char choices[256] = "";
for (choice = oe->choices; *choice != NULL; choice++) {
strlcat(choices, *choice, sizeof choices);
strlcat(choices, ", ", sizeof choices);
choices[strlen(choices) - 2] = '\0';
choices))