title: How to find the length of an LPCSTR
body: <p>I'm trying to convert an LPCSTR to an integer using atoi(), and to verify that the conversion occurred successfully I want to count the number of digits in the integer it produced and the original LPCSTR (it should contain nothing but integers)</p>
  
  <p>I'm having a hard time finding a good way to calculate the length of the LPCSTR.  So far the only way seems to be just counting until I get to a '/0' </p>
  
  <p>Any suggestions for a better method?</p>
  
  <p>Thanks</p>