[BACK]Return to strings.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/strings.c between version 1.4 and 1.5

version 1.4, 2008/12/29 18:08:44 version 1.5, 2009/01/06 15:49:44
Line 133  mdoc_atotime(const char *p)
Line 133  mdoc_atotime(const char *p)
 {  {
         struct tm        tm;          struct tm        tm;
   
           (void)memset(&tm, 0, sizeof(struct tm));
   
         if (strptime(p, "%b %d %Y", &tm))          if (strptime(p, "%b %d %Y", &tm))
                 return(mktime(&tm));                  return(mktime(&tm));
         if (strptime(p, "%b %d, %Y", &tm))          if (strptime(p, "%b %d, %Y", &tm))

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb