??? 04/08/10 12:32 Read: times |
#174916 - itoa() isn't generally available Responding to: ???'s previous message |
In the C library, this is already done for you in function itoa(). In some C libraries, you can use itoa(). It is not part of the standard C library, so it is not generally available. That was why I did write "quite easy to write a small function". The small snippet needed when itoa() isn't available can be retrieved from: http://en.wikipedia.org/wiki/Itoa And to print strings that need no formatting you can use puts() instead of printf(). I thought people already used puts() in their applications when emitting fixed strings - it is a very efficient little while loop that only has to look for a string termination character. |