# | Line 228 | Line 228 | putrecord( /* write out results record */ | |
---|---|---|
228 | if (n) fputc(tabc, fp); | |
229 | } | |
230 | fputc('\n', fp); | |
231 | + | if (!subtotal) |
232 | + | fflush(fp); /* flush unless -r */ |
233 | } | |
234 | ||
235 | ||
# | Line 331 | Line 333 | char *fname | |
333 | break; | |
334 | } | |
335 | /* close input */ | |
336 | < | return(fclose(fp)); |
336 | > | return(fclose(fp) == EOF ? 1 : 0); |
337 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |