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

Comparing ray/src/cv/lampcolor.c (file contents):
Revision 2.9 by schorsch, Sat Nov 15 17:54:06 2003 UTC vs.
Revision 2.11 by greg, Sat Dec 28 18:05:14 2019 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Program to convert lamp color from table and compute radiance.
6   */
7  
8 #include <stdio.h>
9 #include <string.h>
8   #include <math.h>
9  
10   #include "rtmath.h"
# Line 79 | Line 77 | main(
77                  while (i < NPARAMS) {
78                          printf("Enter %s [%s]: ", param[i].name,
79                                          param[i].value);
80 <                        if (fgets(buf, sizeof(buf), stdin) == NULL)
80 >                        if (fgetline(buf, sizeof(buf), stdin) == NULL)
81                                  exit(0);
82                          if (buf[0] == '?') {
83                                  puts(param[i].help);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines