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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/14/08 14:12
Read: times


 
#153255 - Use sprintf() to do the lot.
Responding to: ???'s previous message
You can format your whole output string to a buffer with sprintf(), and then send the string off to your uart.

If your Uart output is joined to printf(), you do not even need the sprintf() stage.

Else you use itoa(), strcat() or any other functions from your Compiler library.

David.

List of 6 messages in thread
TopicAuthorDate
8051 - int to string            01/01/70 00:00      
   Use sprintf() to do the lot.            01/01/70 00:00      
      tried those :(            01/01/70 00:00      
         If you had read the manual ...            01/01/70 00:00      
            just tried that...            01/01/70 00:00      
               You need to think about it            01/01/70 00:00      

Back to Subject List