Lines Matching defs:section
480 int section;
483 section = 0;
484 while (sectionext[section] != '\0')
485 if (sectionext[section] == *ptr)
486 return section;
488 section++;
496 char *section;
498 if (asprintf(§ion, " (%s) - ", section_id) < 0)
500 return section;
584 makewhatisline(const char *file, const char *line, const char *section)
598 if (section == NULL) {
600 warnx("%s: No section provided for `%s'", file, line);
614 slen = strlen(section);
622 (void)memcpy(&result[pos], section, slen);
631 char *section, *ptr, *last;
640 section = NULL;
646 section = emalloc(length + 5);
647 *section = ' ';
648 (void) memcpy(section + 1, ptr, length);
649 (void) strcpy(section + 1 + length, " - ");
655 free(section);
662 if (section == NULL)
663 section = makesection(pathnamesection("/cat", name));
676 ptr = makewhatisline(name, buffer, section);
677 free(section);
692 free(section);
874 char *section, buffer[8192], *ptr;
878 section = NULL;
881 free(section);
893 free(section);
913 free(section);
914 section = createsectionstring(ptr);
927 free(section);
928 section = createsectionstring(ptr);
932 free(section);
939 free(section);
967 free(section);
1006 free(section);
1027 free(section);
1042 free(section);
1057 free(section);
1090 if (section == NULL)
1091 section = makesection(defaultsection);
1093 ptr = makewhatisline(name, buffer, section);
1094 free(section);
1103 int section;
1112 section = manpagesection(name);
1113 if (section == 0) {
1116 data = parsemanpage(name, in, section);