- struct tm *t;
- char ampm = 'a';
-
- if (hflg == 0) {
- xprintf("%6d\t", hp->Hnum);
- if (tflg == 0) {
- t = localtime(&hp->Htime);
- if (adrof(STRampm)) { /* addition by Hans J. Albertsson */
- if (t->tm_hour >= 12) {
- if (t->tm_hour > 12)
- t->tm_hour -= 12;
- ampm = 'p';
- }
- else if (t->tm_hour == 0)
- t->tm_hour = 12;
- xprintf("%2d:%02d%cm\t", t->tm_hour, t->tm_min, ampm);
- }
- else {
- xprintf("%2d:%02d\t", t->tm_hour, t->tm_min);
- }
- }
- }
- prlex(&hp->Hlex);
+ if (hflg == 0)
+ (void) fprintf(cshout, "%6d\t", hp->Hnum);
+ prlex(cshout, &hp->Hlex);