checkmonth
if ((checkmonth(p1, &len, &offset, &pmonth) != 0)
|| (checkmonth(p2, &len, &offset, &pmonth) != 0 && (p2 = p1))) {
static int checkmonth(char *s, size_t *len, size_t *offset, const char **month);