KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to have a variable sized padding in printf ? I have an integer which says how large the padding is: void foo(int paddingSize) { printf("%...MyText", paddingSize); } This should print out ### MyText where the paddingSize should decide the number of '#' symbols.
Tags (comma-separated)
Save Edits
Cancel