Ttelmah Guest
|
|
Posted: Sat Nov 25, 2006 4:34 pm |
|
|
The internal printf/sprintf, are not normal functions. They represent probably several dozen different routines, with only the 'needed' parts being loaded, based on what the code requires. They also use abilities not available for normal functions in the compiler (variable length argument lists in particular). They are also part of what you 'pay for' with the compiler, and proprietary to CCS. As such, the code for them is not available.
There are some generic examples of basic printf functions on the web, and in the code library, there is an example sscanf function, which shows a method of handling the variable length argument lists, which can be modified to work with these. A google search on 'implementing a printf', will find some examples to work from.
Best Wishes |
|