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

Function abbr

zdump.c:1107–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107static char const *
1108abbr(struct tm const *tmp)
1109{
1110#ifdef TM_ZONE
1111 return tmp->TM_ZONE;
1112#else
1113# if HAVE_TZNAME
1114 if (0 <= tmp->tm_isdst && tzname[0 < tmp->tm_isdst])
1115 return tzname[0 < tmp->tm_isdst];
1116# endif
1117 return "";
1118#endif
1119}
1120
1121/*
1122** The code below can fail on certain theoretical systems;

Callers 5

saveabbrFunction · 0.85
mainFunction · 0.85
huntFunction · 0.85
showFunction · 0.85
format_utc_offsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected