I use a LCD display to display a not known size of text ( changes over time ). I wish to display it at the center of LCD ( 2X16 ).
char t; char h; sprintf(t, "%.1f%cC %.0f%%", temperature,223, humidity);
Now, since I want to add additional data on a specific line and center it, I need to know it size. When using:
16 which is the size determined and not its actual size.
How can I get the exact number of chars used?