# | Line 7 | Line 7 | static const char RCSid[] = "$Id$"; | |
---|---|---|
7 | * 5/18/88 | |
8 | */ | |
9 | ||
10 | – | #include <stdio.h> |
10 | #include <stdlib.h> | |
11 | #include <ctype.h> | |
12 | #include <math.h> | |
# | Line 229 | 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 332 | 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 |