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

Function init_ttinfo

localtime.c:637–646  ·  view source on GitHub ↗

Initialize *S to a value based on UTOFF, ISDST, and DESIGIDX. */

Source from the content-addressed store, hash-verified

635
636/* Initialize *S to a value based on UTOFF, ISDST, and DESIGIDX. */
637static void
638init_ttinfo(struct ttinfo *s, int_fast32_t utoff, bool isdst,
639 desigidx_type desigidx)
640{
641 s->tt_utoff = utoff;
642 s->tt_isdst = isdst;
643 s->tt_desigidx = desigidx;
644 s->tt_ttisstd = false;
645 s->tt_ttisut = false;
646}
647
648/* Return true if SP's time type I does not specify local time. */
649static bool

Callers 2

tzparseFunction · 0.85
zoneinitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected