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 |
|
|
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) |