title: How to convert char '5' into int '5' in C?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/439573/how-to-convert-a-single-char-into-an-int">How to convert a single char into an int</a>  </p>
  </blockquote>
  
  
  
  <p>I am working on a program that requires an integer be pulled from a string, and then added to other integers.</p>
  
  <p>I.E.  Input "123456789".  I can pull out the 5th char, '5', but I need to add this to another int.  If I try to convert this to int, it returns the ASCI value.  Is there any way to convert a char to its corresponding int?</p>