This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem compiling code trying to add sscanf function
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: n f <yazhi_1 at yahoo dot com>, gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 24 Mar 2004 14:57:01 -0600
- Subject: Re: problem compiling code trying to add sscanf function
- References: <20040324201434.56556.qmail@web40102.mail.yahoo.com>
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