Some Code
char s[10];
snprintf(s, 10, "%05d", 100);
Which results in
s contains "00100"
0
solved C: How to extend variable-length strings to set length [closed]
char s[10];
snprintf(s, 10, "%05d", 100);
s contains "00100"
0
solved C: How to extend variable-length strings to set length [closed]