tz_country
compar(struct tz_country *p1, struct tz_country *p2)
get_tz_countries(struct tz_country **country, struct tz_continent *cont)
struct tz_country *head = NULL, *prev = NULL, *next, *cp, *cp2;
if ((cp = (struct tz_country *)
calloc(1, sizeof (struct tz_country))) == NULL) {
((cp2 = calloc(ncount, sizeof (struct tz_country))) != NULL)) {
(void) memcpy(&cp2[i], cp, sizeof (struct tz_country));
qsort(cp2, ncount, sizeof (struct tz_country),
struct tz_country *country)
free_tz_countries(struct tz_country *country)
struct tz_country *cptr, *cprev;
static int compar(struct tz_country *, struct tz_country *);
struct tz_country *ctry_next; /* pointer to next element */
extern int get_tz_countries(struct tz_country **, struct tz_continent *);
extern int get_timezones_by_country(struct tz_timezone **, struct tz_country *);
extern int free_tz_countries(struct tz_country *);
struct tz_country *countries;
for (struct tz_country *ctry = countries; ctry != NULL;
struct tz_country *country)
struct tz_country *country;
for (struct tz_country *c = country; c != NULL; c = c->ctry_next,
const struct tz_country *country, const struct tz_timezone *tz)