Lines Matching refs:topic
56 * Subtopic entries must immediately follow the topic (this is used to
64 help_getnext(int fd, char **topic, char **subtopic, char **desc)
69 *topic = *subtopic = *desc = NULL;
80 if (*cp == 'T' && *topic == NULL) {
83 *topic = strdup(cp + 1);
94 if (*topic == NULL) {
105 help_emitsummary(char *topic, char *subtopic, char *desc)
110 pager_output(topic);
111 i = strlen(topic);
132 char *topic, *subtopic, *t, *s, *d;
143 topic = subtopic = NULL;
149 topic = strdup(argv[1]);
152 topic = strdup("help");
155 command_errmsg = "usage is 'help <topic> [<subtopic>]";
161 doindex = strcmp(topic, "index") == 0? 1 : 0;
172 } else if (strcmp(topic, t)) {
173 /* topic mismatch */
175 /* nothing more on this topic, stop scanning */
179 /* topic matched */
193 /* topic match, list subtopics */
210 "no help available for '%s'", topic);
211 free(topic);
215 free(topic);