title: How to format a number with thousands separator in C/C++
body: <p>I am trying to do this simple task. Just to format a number using C or C++, but under Windows CE programming.</p>
  
  <p>In this environment, neither inbue nor setlocale methods work.</p>
  
  <p>Finally I did this with no success:</p>
  
  <pre><code>char szValue[10];
  sprintf(szValue, "%'8d", iValue);
  </code></pre>
  
  <p>Any idea?</p>