title: Which is efficient, itoa or sprintf?
body: <p>I am in the processes of building my first C++ application and choosing an efficient C++ libraries to rely on at this stage, is one of the design consideration I am looking at.</p>
  
  <p>Consequently I want to convert an integer type to string and deciding on whether to use;</p>
  
  <pre><code>sprintf(string, "%d", x);
  </code></pre>
  
  <p>Or</p>
  
  <p><strong>Integer to ASCI</strong></p>
  
  <pre><code>itoa(x, string);
  </code></pre>
  
  <p>Can anyone suggest which one of these route is efficient and possibly why?</p>
  
  <p>Thanks.</p>