title: Convert string into number
body: <p>I learned that numbers can be converted into strings with <code>sprintf</code>:</p>
  
  <pre><code>int main()
  {
      int n; 
      char s[32];
  
      printf("n=");
      scanf("%d",&amp;n);
  
      sprintf(s,"%d",n); //HERE
      puts(s);
  
      return 0;
  }
  </code></pre>
  
  <p>Is it possible to convert a string into a number with a similar command, without checking if each character is a number?</p>