4 const char * strings
[] =
30 const double results
[] =
55 const int ptroffset
[] =
82 char * float_end
= NULL
;
85 const char * str
= NULL
;
87 while((str
= strings
[i
]) != NULL
)
89 f
= strtod(str
, &float_end
);
91 printf("RESULT FAILURE @ %s, should be %f was %f\n", str
, results
[i
], f
);
92 if ((float_end
- str
) != ptroffset
[i
])
93 printf("OFFSET FAILURE @ %s, should be %d was %d\n", str
, ptroffset
[i
], (float_end
- str
));