In some code that I have to maintain, I have seen a format specifier %*s
. Can anybody tell me what this is and why it is used?
An example of its usage is like:
fprintf(outFile, "
%*s", indent, "");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…