title: Space padding in printf doesn't work
body: <p>I need to add variable space padding before my string. Here's the code:</p>
  
  <pre><code>unsigned int spaces = result % 16;
  printf("spaces=%d\n", spaces); // spaces=12, for example.
  printf("% *s\n", spaces, my_string);
  </code></pre>
  
  <p>It simply doesn't work - spaces are not added and I'm getting following warning in gcc:</p>
  
  <p><code>warning: ' ' flag used with ‘%s’ gnu_printf format [-Wformat=]</code></p>
  
  <p>How to fix that? Is there any workaround for this?</p>