| 477 | } |
| 478 | |
| 479 | static int date_get_month(const char **pp) { |
| 480 | int i = 0; |
| 481 | for (; i < 12; i++) { |
| 482 | if (!av_strncasecmp(*pp, months[i], 3)) { |
| 483 | const char *mo_full = months[i] + 3; |
| 484 | int len = strlen(mo_full); |
| 485 | *pp += 3; |
| 486 | if (len > 0 && !av_strncasecmp(*pp, mo_full, len)) |
| 487 | *pp += len; |
| 488 | return i; |
| 489 | } |
| 490 | } |
| 491 | return -1; |
| 492 | } |
| 493 | |
| 494 | char *av_small_strptime(const char *p, const char *fmt, struct tm *dt) |
| 495 | { |
no test coverage detected