Hi, When i use the following code, the code size is as below: unsigned char Buf[3]; unsigned long oncount = 0;
sprintf (Buf,"%d",(int)(oncount/360000)); Program Size: data=45.1 xdata=1 code=1847
And when i dont use the Sprintf my code size gets reduced as below: Program Size: data=24.0 xdata=1 code=558
Is there any alternate for Sprintf ??
Aniket