How should I make a variable format sequence for sprintf?.
int i=2,d=9;
String sf;
sprintf(sf,"%%0%d",i);
fprintf(sf,d);
While expecting the output.
09
The compilation fails, with several errors, according the failing change I apply.
Invalid cast from type 'String' to type 'char*'
char sf[32];
and then correct the rest.