??? 06/06/07 20:53 Read: times |
#140356 - Be careful Responding to: ???'s previous message |
Raghu said:
I really felt happy after seeing your one line solution. I always had been an assembly language guy and migrated to C recently - and any amount of reading and trying cannot match a single 'smart' example. Thanks. You're welcome. There could be arguments if its simpler on the code or on the MCU but in my position I am happy if its simpler to code! That's fine if the scanf() solution really meets your needs. But please don't ignore the comments of some of the other posters. Neil in particular made some very good points ... scanf() can fail miserably if the input isn't exactly what you're expecting. -- Russ |