Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/05 14:06
Read: times


 
#89267 - Odd
Responding to: ???'s previous message
"You are very unlikely to find a scanf as it reads the standard input stream on a 8052 is very hardware dependant"

That's an odd thing. Keil implement scanf(), if you don't want it to read from the UART you replace their _getkey() routine with one that reads from wherever you want it to. Does SDCC implement sscanf()?

"There is a printf because you usualy know what the data format is by the time you want to output it."

I don't really see the difference. printf() writes to the standard output stream which is equally hardware dependent. Also, I usually know the data format when I want to input it...



List of 4 messages in thread
TopicAuthorDate
SDCC compiler : scanf implementation            01/01/70 00:00      
   nope            01/01/70 00:00      
      Odd            01/01/70 00:00      
         SDCC : scanf printf            01/01/70 00:00      

Back to Subject List