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

int to char or str

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








int to char or str
PostPosted: Wed Oct 11, 2006 11:14 am     Reply with quote

Hello,

Trying to find out how to convert an integer into a character or string array? I do not see a reciprocal function of atoi(). Is there a function in ccs that can handle this?? If not, what methodology would i use to build my own??

Thanks!
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Oct 11, 2006 11:31 am     Reply with quote

sprintf the variable
That takes int/long/hex/whatever and prints it, But instead of printing to the screen it puts it in a string.
Guest








PostPosted: Wed Oct 11, 2006 12:10 pm     Reply with quote

got it working with sprintf, thanks!
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