#include <time.h>
#include "dateparse.h"
+#include "strptime.h"
#define TM_YEAR_BASE 1900
const char *const *template)
{
const char *line;
- size_t len;
char *result = NULL;
time_t timer;
struct tm tm;
int mday_ok = 0;
line = NULL;
- len = 0;
while((line = *template++))
{
/* Do the conversion. */
tp->tm_isdst = -1;
tp->tm_gmtoff = 0;
tp->tm_zone = NULL;
- result = strptime (string, line, tp);
+ result = my_strptime (string, line, tp);
if (result && *result == '\0')
break;
}