title: C/C++: printf use commas instead of dots as decimal separator
body: <p>I need that my program shows the output using commas as decimal separator.</p>
  
  <p>According to this link: <a href="http://www.java2s.com/Code/Java/Development-Class/Floatingpointwithcommasf.htm" rel="noreferrer">http://www.java2s.com/Code/Java/Development-Class/Floatingpointwithcommasf.htm</a> you can use in Java something like this:</p>
  
  <pre><code>System.out.printf("Floating-point with commas: %,f\n", 1234567.123);
  </code></pre>
  
  <p>Is there a flag or something that I can use to have a similar behaviour in C?</p>
  
  <p>Thanks in advance!</p>