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.9 by greg, Sun Mar 9 20:07:27 2014 UTC vs.
Revision 1.10 by greg, Tue Mar 25 05:36:22 2014 UTC

# Line 213 | Line 213 | putrecord(                     /* write out results record */
213                  return;
214          }
215                                                  /* ASCII output */
216 <        while (n-- > 0)
217 <                fprintf(fp, "%.9g%c", *field++, tabc);
216 >        while (n-- > 0) {
217 >                fprintf(fp, "%.9g", *field++);
218 >                if (n) fputc(tabc, fp);
219 >        }
220          fputc('\n', fp);
221   }
222  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines