This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem compiling code trying to add sscanf function


Is there any reason you have...
x = sscanf(out, "%lf", &fnum);
...instead of...
x = sscanf(out, "%f", &fnum);
...?

The "%lf" indicates a double.
But fnum is a float.

Mismatch error.

--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]