I’m trying to create a dynamic printf size for a lcd but it outputs only f= what do i do wrong?
sprintf(buffer, "f=%.2f", (d = d + 0.01)); <-- works but not dynamic
sprintf(buffer, "f=%.*f", 2 , (d = d + 0.01)); <-- Does not any give warning
lcd_puts(buffer);
_delay_ms(100);
Possibly you need this: