MCPcopy Create free account
hub / github.com/eggert/tz / ttunspecified

Function ttunspecified

localtime.c:649–655  ·  view source on GitHub ↗

Return true if SP's time type I does not specify local time. */

Source from the content-addressed store, hash-verified

647
648/* Return true if SP's time type I does not specify local time. */
649static bool
650ttunspecified(struct state const *sp, int i)
651{
652 char const *abbr = &sp->chars[sp->ttis[i].tt_desigidx];
653 /* memcmp is likely faster than strcmp, and is safe due to CHARS_EXTRA. */
654 return memcmp(abbr, UNSPEC, sizeof UNSPEC) == 0;
655}
656
657static int_fast32_2s
658detzcode(const char *const codep)

Callers 3

may_update_tzname_etcFunction · 0.85
time2subFunction · 0.85
time1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected