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

Comparing ray/src/meta/tgraph.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *   1/20/85
8   */
9  
10 #include  "tgraph.h"
11
10   #include  <ctype.h>
11 + #include  <string.h>
12  
13 + #include  "tgraph.h"
14  
15 +
16   #define  isfloat(a)  (isdigit(a) || (a) == '-' || (a) == '.' ||  \
17                       (a) == 'E' || (a) == '+' || (a) == 'e')
18  
# Line 535 | Line 536 | char  *s;
536   double  *xp, *yp;
537  
538   {
538    char  *index();
539      double  sin(), cos();
540      int  oobounds = 0;
541      double  a;
542      register char  *cp;
543      
544 <    if ((cp = index(s, ',')) != NULL)
544 >    if ((cp = strchr(s, ',')) != NULL)
545          *cp = ' ';
546  
547      if (sscanf(s, "%lf %lf", xp, yp) != 2)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines