I'm trying to format some printf statements to allow for arbitrary levels of indentation. Ideally I want the following output where "One", "Two", etc are placeholders for variable length log messages.
One
Two
Three
Two
One
I'm working on the variable length spacing required for the indentation, and I know I can do the following:
printf( "%*s", indent_level, "" );
but I'm wondering if there's a way to do it without the second empty string arg.