Lines Matching refs:topic
55 * Subtopic entries must immediately follow the topic (this is used to
63 help_getnext(int fd, char **topic, char **subtopic, char **desc)
74 *topic = *subtopic = *desc = NULL;
78 if ((*cp == 'T') && (*topic == NULL)) {
81 *topic = strdup(cp + 1);
92 if (*topic == NULL) {
104 help_emitsummary(char *topic, char *subtopic, char *desc)
109 pager_output(topic);
110 i = strlen(topic);
131 char *topic, *subtopic, *t, *s, *d;
141 topic = subtopic = NULL;
146 topic = strdup(argv[1]);
149 topic = strdup("help");
152 command_errmsg = "usage is 'help <topic> [<subtopic>]";
158 doindex = !strcmp(topic, "index");
169 } else if (strcmp(topic, t)) {
170 /* topic mismatch */
171 if(matched) /* nothing more on this topic, stop scanning */
175 /* topic matched */
187 /* topic match, list subtopics */
199 sprintf(command_errbuf, "no help available for '%s'", topic);
200 free(topic);
205 free(topic);