MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / date_get_month

Function date_get_month

libavutil/parseutils.c:479–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479static 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
494char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
495{

Callers 1

av_small_strptimeFunction · 0.85

Calls 1

av_strncasecmpFunction · 0.85

Tested by

no test coverage detected