View Single Post
Old 06-11-2005, 07:37 AM   #3 (permalink)
MicroBlaze
Registered User
 
Join Date: Jun 2005
Posts: 2
MicroBlaze is on a distinguished road
is there a smaller way to do this? my system is an embedded system and I don't have much memory. I just tried sprintf() and it's too big. Is there a way to do this without using sprintf(). For example, I'm wrote a function hex2char(num) where I just do an if else and assign a char for 0 through F. Then I have another function that can take any number and split it into it's individual digits, where 243 would get changed to 2,4,3 then I change each to the char '2','4','3'. now I what to just stick the char '2','4','3' into a string 243. I need the do this with the smallest amount of compiled code... Any better ideas?
MicroBlaze is offline   Reply With Quote