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

Function mktmcpy

localtime.c:2573–2586  ·  view source on GitHub ↗

Copy to *DEST from *SRC. Copy only the members needed for mktime, as other members might not be initialized. */

Source from the content-addressed store, hash-verified

2571/* Copy to *DEST from *SRC. Copy only the members needed for mktime,
2572 as other members might not be initialized. */
2573static void
2574mktmcpy(struct tm *dest, struct tm const *src)
2575{
2576 dest->tm_sec = src->tm_sec;
2577 dest->tm_min = src->tm_min;
2578 dest->tm_hour = src->tm_hour;
2579 dest->tm_mday = src->tm_mday;
2580 dest->tm_mon = src->tm_mon;
2581 dest->tm_year = src->tm_year;
2582 dest->tm_isdst = src->tm_isdst;
2583#if defined TM_GMTOFF && ! UNINIT_TRAP
2584 dest->TM_GMTOFF = src->TM_GMTOFF;
2585#endif
2586}
2587
2588static time_t
2589time2sub(struct tm *const tmp,

Callers 2

time2subFunction · 0.85
timegmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected