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

Comparing ray/src/common/words.c (file contents):
Revision 1.3 by greg, Thu Jul 25 14:36:49 1991 UTC vs.
Revision 2.2 by greg, Wed Jan 10 21:04:21 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 44 | Line 44 | register char  *s;
44                  s++;
45          while (*s && !isspace(*s))
46                  s++;
47 +        while (isspace(*s))
48 +                s++;
49          return(s);
50   }
51  
# Line 69 | Line 71 | char *
71   fskip(s)                        /* skip float in string */
72   register char  *s;
73   {
74 <        register char  *cp = s;
74 >        register char  *cp;
75  
76 <        while (isspace(*cp))
77 <                cp++;
78 <        if (*cp == '-' || *cp == '+')
79 <                cp++;
80 <        s = cp;
76 >        while (isspace(*s))
77 >                s++;
78 >        if (*s == '-' || *s == '+')
79 >                s++;
80 >        cp = s;
81          while (isdigit(*cp))
82                  cp++;
83          if (*cp == '.') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines