Lines Matching refs:timecnt
78 tz->timecnt = timelib_conv_int(buffer[3]); in read_header()
90 if (tz->timecnt) { in read_transistions()
91 buffer = (int32_t*) malloc(tz->timecnt * sizeof(int32_t)); in read_transistions()
95 memcpy(buffer, *tzf, sizeof(int32_t) * tz->timecnt); in read_transistions()
96 *tzf += (sizeof(int32_t) * tz->timecnt); in read_transistions()
97 for (i = 0; i < tz->timecnt; i++) { in read_transistions()
101 cbuffer = (unsigned char*) malloc(tz->timecnt * sizeof(unsigned char)); in read_transistions()
106 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->timecnt); in read_transistions()
107 *tzf += sizeof(unsigned char) * tz->timecnt; in read_transistions()
227 printf("Trans. count: %lu\n", (unsigned long) tz->timecnt); in timelib_dump_tzinfo()
240 for (i = 0; i < tz->timecnt; i++) { in timelib_dump_tzinfo()
341 if (!tz->timecnt || !tz->trans) { in fetch_timezone_offset()
358 while (j < tz->timecnt && tz->type[j].isdst) { in fetch_timezone_offset()
361 if (j == tz->timecnt) { in fetch_timezone_offset()
369 for (i = 0; i < tz->timecnt; i++) { in fetch_timezone_offset()
375 *transition_time = tz->trans[tz->timecnt - 1]; in fetch_timezone_offset()
376 return &(tz->type[tz->trans_idx[tz->timecnt - 1]]); in fetch_timezone_offset()