scanf doesn't work
Nye Liu
nyet@mrv.com
Thu Jun 18 17:58:00 GMT 2009
On Thu, Jun 18, 2009 at 10:51:01AM -0700, Yann E. MORIN wrote:
> On Thursday 18 June 2009 16:16:39 Leonitis wrote:
> > I successfully built a cross-compiler for the ARM with crosstool-ng and
> > everything works fine. However, when I want to get user float input with
> > scanf(), it misses the negative sign, even though it works fine with
> > integers. For example, 3.5 and -3.5 are both read in as 3.5.
If he is used to the way x86 compilers/cpus handle signed data storage,
maybe he is doing a questionable cast someplace.
There are signed/unsigned casts that work for x86 that do not work for,
say, ppc and arm.
--
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax
"Who would be stupid enough to quote a fictitious character?"
-- Don Quixote
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list