7 |
|
* External symbols declared in rpaint.h |
8 |
|
*/ |
9 |
|
|
10 |
– |
#include <ctype.h> |
11 |
– |
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
+ |
#include <ctype.h> |
13 |
+ |
#include <string.h> |
14 |
+ |
|
15 |
|
#include "platform.h" |
16 |
|
#include "ray.h" |
17 |
|
#include "otypes.h" |
464 |
|
(*dev->comout)(buf); |
465 |
|
(*dev->comin)(buf, NULL); |
466 |
|
if (buf[0] == '\0' || |
467 |
< |
index("yY+1tTnN-0fF", buf[0]) == NULL) |
467 |
> |
strchr("yY+1tTnN-0fF", buf[0]) == NULL) |
468 |
|
return(0); |
469 |
|
} |
470 |
< |
ptr->i = index("yY+1tT", buf[0]) != NULL; |
470 |
> |
ptr->i = strchr("yY+1tT", buf[0]) != NULL; |
471 |
|
return(1); |
472 |
|
case 'C': /* color */ |
473 |
|
if (sscanf(str, "%lf %lf %lf", &d0, &d1, &d2) != 3) { |