|
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.
[Prev in Thread] | Current Thread | [Next in Thread] |