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

Comparing ray/src/common/badarg.c (file contents):
Revision 1.1 by greg, Thu Nov 7 11:03:34 1991 UTC vs.
Revision 1.2 by greg, Fri Nov 8 09:58:38 1991 UTC

# Line 8 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   * Check argument list against format string.
9   */
10  
11 + #include <ctype.h>
12 +
13   #define NULL            0
14  
15   int
# Line 25 | Line 27 | register char  *fl;
27                          return(-1);
28                  switch (*fl) {
29                  case 's':               /* string */
30 <                        if (**av == '\0' || **av == ' ' || **av == '\t')
30 >                        if (**av == '\0' || isspace(**av))
31                                  return(i);
32                          break;
33                  case 'i':               /* integer */
34 <                        if (!isintd(*av, " \t"))
34 >                        if (!isintd(*av, " \t\r\n"))
35                                  return(i);
36                          break;
37                  case 'f':               /* float */
38 <                        if (!isfltd(*av, " \t"))
38 >                        if (!isfltd(*av, " \t\r\n"))
39                                  return(i);
40                          break;
41                  default:                /* bad call! */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines