version 1.33, 2009/10/04 15:24:54 |
version 1.34, 2009/10/07 12:19:39 |
|
|
print_foot(struct termp *p, const struct man_meta *meta) |
print_foot(struct termp *p, const struct man_meta *meta) |
{ |
{ |
struct tm *tm; |
struct tm *tm; |
char *buf; |
char buf[BUFSIZ]; |
|
|
if (NULL == (buf = malloc(p->rmargin))) |
|
err(EXIT_FAILURE, "malloc"); |
|
|
|
tm = localtime(&meta->date); |
tm = localtime(&meta->date); |
|
|
if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm)) |
if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm)) |
err(EXIT_FAILURE, "strftime"); |
(void)strlcpy(buf, "(invalid date)", BUFSIZ); |
|
|
term_vspace(p); |
term_vspace(p); |
|
|
Line 948 print_foot(struct termp *p, const struct man_meta *met |
|
Line 945 print_foot(struct termp *p, const struct man_meta *met |
|
|
|
term_word(p, buf); |
term_word(p, buf); |
term_flushln(p); |
term_flushln(p); |
|
|
free(buf); |
|
} |
} |
|
|
|
|