The concept is very similar to this Add zero-padding to a string but it's a question from c# NOT C.
While you can add a zero padding in printf like this printf("%4d", number)
How can I have a zero padding to a string? ex:
char *file_frame = "shots";
strcat(file_frame, "%3d", number); // It's my attempt to solve it. I know it's wrong
so that I would get shots000
from file_frame