+ int i;
+ int num_helps = sizeof(helpnames) / sizeof(char *) ;
+
+ for (i=0; i<num_helps; ++i) {
+ if (!strcasecmp(name, helpnames[i])) {
+ fmout(screenwidth, NULL, helptexts[i], NULL, 0);
+ return;
+ }
+ }
+
+ scr_printf("'%s' not found. Enter one of:\n", name);
+ for (i=0; i<num_helps; ++i) {
+ scr_printf(" %s\n", helpnames[i]);
+ }