P
pozz
Is there some modifier that skips a parameter of a printf?
For example, I pass three parameters:
printf( <format string>, '-', value/10, value%10 );
In certain cases I want to print the minus sign character, in other
cases I want to skip it.
If I want to print the sign, it is very simple:
<format string> = "%c%d.%1d"
What about if I want to print only the last two parameters of
printf(), skipping the sign character?
For example, I pass three parameters:
printf( <format string>, '-', value/10, value%10 );
In certain cases I want to print the minus sign character, in other
cases I want to skip it.
If I want to print the sign, it is very simple:
<format string> = "%c%d.%1d"
What about if I want to print only the last two parameters of
printf(), skipping the sign character?