Try strtold() perhaps. It happily reads all the formats (15892938475,
1.5892938475E10 etc) you asked for.
If the significand part of the float is as large or larger than the
int type, then you can convert the result to an int type with no loss
of precision. 80 bit long double (common on x86) has
Sean Robert McGuffee writes:
> Regarding all the scanf functions reading long values
> (sscanf,fscanf,scanf,... etc...).
I'm sorry, this is the wrong mailing list. gcc is just the compiler.
Functions like sscanf, fscanf, scanf are part of the C library. gcc
does not provide a C library.
In an
Hi,
I¹m not sure if this have been dealt with or not, but I happen to be
thinking about it at the moment and wanted to say something before I forget.
There is as situation in which I believe an improvement is needed:
Regarding all the scanf functions reading long values
(sscanf,fscanf,scanf,... etc