Home | History | Annotate | Download | only in tzcode

Lines Matching defs:fp

244 static time_t	huntICU(char * name, time_t lot, time_t	hit, FILE *fp);
245 static void dumptimeICU(FILE * fp, time_t t);
246 static void showICU(FILE * fp, char * zone, time_t t1, time_t t2);
358 FILE * fp = stdout;
550 fp = NULL;
571 if ((fp = fopen(path, "w")) == NULL) {
616 newt = huntICU(argv[i], t, newt, fp);
662 if (fp != NULL) {
663 fclose(fp);
927 huntICU(char *name, time_t lot, time_t hit, FILE * fp)
965 showICU(fp, name, lot, hit);
969 static void showICU(FILE * fp, char *zone, time_t t1, time_t t2)
971 if (fp == NULL) {
972 fp = stdout;
974 dumptimeICU(fp, t1);
975 fprintf(fp, " > ");
976 dumptimeICU(fp, t2);
977 fprintf(fp, "\n");
980 static void dumptimeICU(FILE * fp, time_t t)
1005 fprintf(fp, "%04d-%02d-%02d", lead * DIVISOR + trail, loc.tm_mon + 1, loc.tm_mday);
1006 fprintf(fp, " %.3s ", wday_name[loc.tm_wday]);
1007 fprintf(fp, "%02d:%02d:%02d", loc.tm_hour, loc.tm_min, loc.tm_sec);
1013 fprintf(fp, "-");
1015 fprintf(fp, "+");
1023 fprintf(fp, "%02d", hour);
1024 fprintf(fp, "%02d", min);
1025 fprintf(fp, "%02d", sec);
1026 fprintf(fp, "[DST=%d]", loc.tm_isdst);