ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/total.c
(Generate patch)

Comparing ray/src/cal/total.c (file contents):
Revision 1.13 by greg, Thu Aug 18 00:52:47 2016 UTC vs.
Revision 1.15 by greg, Tue Nov 16 03:30:45 2021 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines