AnsweredAssumed Answered

printf and sprintf why it should not be used?

Question asked by capasso.ornella on Nov 17, 2012
Latest reply on Nov 17, 2012 by capasso.ornella
To print the result of the ADC on my LCD (16x2) I use the following actions:
sprintf(Sprint,"%d",ADC3ConvertedValue[0]);
LCD_PrintData(Sprint, lenght(Sprint)); //  length (Sprint) returns the size of the carrier Sprint
I read on the internet that should be avoided for microcontrollers the instructions sprintf and printf, but I have not found an explanation as to because I avoid them! Can someone clarify because I should avoid use printf and sprintf?
What are the "codes" alternative to these two functions?

Outcomes