# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |