fnames[i] = p;
}
- strcpy(menu_buf[i], "exit");
+ strcpy(menu_buf[i], "Zurück");
menu_index[i] = menu_buf[i];
size_t choice = badge_menu(menu_index, i + 1, first_visible, *selected);
}
}
-void badge_browse_textfiles(char const *menufile) {
+void badge_browse_textfiles(char const *menufile, size_t *selected) {
char buf[FNAME_MAX + 1];
size_t first_visible = 0;
- size_t selected = 0;
- while(0 == badge_pick_filename(buf, menufile, &first_visible, &selected)) {
+ while(0 == badge_pick_filename(buf, menufile, &first_visible, selected)) {
badge_browse_textfile(buf);
}
}