version 1.18, 2009/08/21 12:32:38 |
version 1.21, 2009/10/27 08:26:12 |
Line 62 const struct actions man_actions[MAN_MAX] = { |
|
Line 62 const struct actions man_actions[MAN_MAX] = { |
|
{ NULL }, /* RE */ |
{ NULL }, /* RE */ |
{ NULL }, /* RS */ |
{ NULL }, /* RS */ |
{ NULL }, /* DT */ |
{ NULL }, /* DT */ |
|
{ NULL }, /* UC */ |
|
{ NULL }, /* PD */ |
}; |
}; |
|
|
static time_t man_atotime(const char *); |
static time_t man_atotime(const char *); |
Line 206 man_atotime(const char *p) |
|
Line 208 man_atotime(const char *p) |
|
struct tm tm; |
struct tm tm; |
char *pp; |
char *pp; |
|
|
bzero(&tm, sizeof(struct tm)); |
memset(&tm, 0, sizeof(struct tm)); |
|
|
if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp) |
if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp) |
return(mktime(&tm)); |
return(mktime(&tm)); |