3 * Copyright 1991 by the Massachusetts Institute of Technology.
5 * For further information on copyright and distribution
6 * see the file mit-copyright.h
9 #include <mit-copyright.h>
18 FILE *helpfile = NULL;
19 char buf[1024], key[32];
21 sprintf(key, "*%s\n", node);
22 helpfile = fopen(HELPFILE, "r");
23 if (helpfile == NULL) {
24 display_error("Sorry, help is currently unavailable.\n");
27 while (fgets(buf, sizeof(buf), helpfile))
28 if (!strcmp(buf, key))
30 if (strcmp(buf, key)) {
31 sprintf(buf, "Sorry, unable to find help on topic \"%s\".\n", node);
36 while (fgets(buf, sizeof(buf), helpfile))
45 help_form_callback(dummy, form)