Question
printf and sprintf why it should not be used?
Posted on November 17, 2012 at 12:09
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 SprintI 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? #know-your-tools