Lines Matching defs:topic
1061 * Subtopic entries must immediately follow the topic (this is used to
1067 help_getnext(int fd, char **topic, char **subtopic, char **desc)
1078 *topic = *subtopic = *desc = NULL;
1082 if ((*cp == 'T') && (*topic == NULL)) {
1085 *topic = strdup(cp + 1);
1096 if (*topic == NULL) {
1108 help_emitsummary(char *topic, char *subtopic, char *desc)
1113 pager_output(topic);
1114 i = strlen(topic);
1134 char *topic, *subtopic, *t, *s, *d;
1145 topic = subtopic = NULL;
1150 topic = strdup(argv[1]);
1153 topic = strdup("help");
1156 command_errmsg = "usage is 'help <topic> [<subtopic>]";
1162 doindex = strcmp(topic, "index") == 0;
1172 } else if (strcmp(topic, t)) {
1173 /* topic mismatch */
1174 /* nothing more on this topic, stop scanning */
1178 /* topic matched */
1192 /* topic match, list subtopics */
1205 "no help available for '%s'", topic);
1206 free(topic);
1211 free(topic);