Home | History | Annotate | Download | only in common

Lines Matching defs:topic

74  * Subtopic entries must immediately follow the topic (this is used to
81 help_getnext(int fd, char **topic, char **subtopic, char **desc)
92 *topic = *subtopic = *desc = NULL;
96 if ((*cp == 'T') && (*topic == NULL)) {
99 *topic = strdup(cp + 1);
110 if (*topic == NULL) {
122 help_emitsummary(char *topic, char *subtopic, char *desc)
127 pager_output(topic);
128 i = strlen(topic);
149 char *topic, *subtopic, *t, *s, *d;
159 topic = subtopic = NULL;
164 topic = strdup(argv[1]);
167 topic = strdup("help");
170 command_seterr("usage is 'help <topic> [<subtopic>]");
175 doindex = !strcmp(topic, "index");
186 } else if (strcmp(topic, t)) {
187 /* topic mismatch */
188 if(matched) /* nothing more on this topic, stop scanning */
192 /* topic matched */
204 /* topic match, list subtopics */
216 command_seterr("no help available for '%s'", topic);
217 free(topic);
222 free(topic);