ITOA}
Synopsis
#include <stdlib.h>
char * itoa (char * buf, int val, int base)
Description
The function itoa converts the contents of val into a string which is stored into buf.
The conversion is performed according to the radix specified in base. buf is assumed
to reference a buffer which has sufficient space allocated to it.
Example
#include <stdlib.h>
#include <stdio.h>
void
main (void)
{
char buf[10];
itoa(buf, 1234, 16);//16=hex,10=dec,8=oct
printf(" buffer holds %s\n" buf);
/*
See Alsostrtol(), utoa(), ltoa(), ultoa()
*/
The ltoa() is a standard function in Ansi C. But sorry for you not a part of MikroC. Some googling gave me that in mikroC the same function is named IntToStr. Take a look at it. Hope it helps.
I would be curious just how the mikroC C compiler for the PIC family works with the Atmega16. I would imagine "not."
Check the MikroC help file, it lists the libraries for string conversion etc. I think the one you need is called WordToStr() and displays a 16but insigned int as 5 text characters, used like this;hii
i wont to display the content of a varilable on LCD 16*2
connected with Atmega16
for ex:
int i=123;
LCD_out(1,3,i);
???
using mikroC
thx.