Have problems with outputting image format, because of missed space. For example, if i print rgb colour {95, 255, 100} – then 95 corrupts image because it left 1 space before. so, i want to print it as {095, 255, 100}.
So, General form must be like {000}, if value is 5 then {005}, if it’s 100 then {100}.
How it possibly to do in the most efficient way. Maybe sprintf has some argument parrams for that? I haven’t found something similar yet for integer values.
For now maybe, the most naive method is loop through and set zeros before int in char buff.