CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

can i get sprintf function c code

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ketan
Guest







can i get sprintf function c code
PostPosted: Sat Nov 25, 2006 1:24 pm     Reply with quote

can i get sprintf function c code...or where can i find it....
Ttelmah
Guest







PostPosted: Sat Nov 25, 2006 4:34 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group