avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Problems with scanf_P()


From: Larry Barello
Subject: RE: [avr-gcc-list] Problems with scanf_P()
Date: Thu, 15 Jul 2004 08:28:13 -0700

Problem solved: I wasn't flushing the input stream after a bad conversion.

Replacing "%d%c%c%d" with "%d%c%c%d%*s" solved the problem.  The %*s eats
the rest of the input line and flushes extra, bogus characters.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]