ciao a tutti..
ho il seguente codice:
-------------------------------
BOOL GetNumber(struct TDF *IlF,const char *str, double *value)
{
char Buffer[256], *endptr;
int i = 0;
while (*str == ' ') str++;
for (; i < 255 && (isdigit(*str) || *str == '.' || *str == '+' || *str == '-' || *str == 'e' || *str == 'E'); i++, str++)
Buffer[i] = *str;
Buffer[i] = '\0';
value = strtod(Buffer, &endptr);
return (endptr == Buffer + i && i);
}
-------------------------------
ma in fase di compilazione ho il seguente errore:
"Illegal use of floting point"
A cosa è dovuto??![]()
ciao e grazie!!