Lines Matching refs:th
156 static struct table_hdr th;
160 th.hdr[i] = malloc(HDR_LINE_LENGTH);
161 memset(th.hdr[i], 0, sizeof(th.hdr[i]));
171 snprintf(th.hdr[0]+ofs, width+2, fmt,
177 snprintf(th.hdr[h]+ofs, width+2, fmt, "");
179 th.num_lines = h+1;
180 snprintf(th.hdr[h]+ofs, width+2, fmt, cname);
187 for (h = 1; h <= th.num_lines; h++) {
189 if (th.hdr[h][i] == '\0')
190 th.hdr[h][i] = ' ';
194 return &th;
197 static int print_hdr(FILE *of, struct table_hdr *th)
201 for (i = 0; i < th->num_lines; i++) {
202 fputs(th->hdr[i], of);