For your Kind information Keil is a Cross Compiler .........
To the Initial Questioner
Embedded "C" is not the casual C-Programming. You need to apply some ingenious 
ideas. What is the C code for itoa() like ?? See Kernighan and Ritchie's Book.
Now let me explain :
In ASCII format '0' is 48,  '1' is 49,  '2' is 50............and  '9' is 57;
So what you do is seperate each digit and store them into single byte values.
Let the number be 759
Declare an array of unsigned characters :
unsigned char num[3];
then put unit digit, i.e 9 @ num[2]
           tenth digit, i.e 5 @ num[1]
    hundredth digit, i.e 7 @ num[0]
This being the logic.The code then becomes as simple as this :

int n=759,v,i;
unsigned char num[3];
i=strlen(num);
while(--i)
{
     v = n%10;
     n=n/10;
     num[i]=v+48;    //Thus the number 'v' gets stored as character or ASCII
}
Hope this gives you a good insight into Embedded -C Programming
Regards,
Debasish

saba rish <[EMAIL PROTECTED]> wrote:                                  > What is 
KEIL system?
 > 
 >
 
 [Non-text portions of this message have been removed]
 
 
     
                       


Karmennevaya Dhikaraste, Maaphaaleshu Kadaachanah
                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 

[Non-text portions of this message have been removed]

Reply via email to