title: Using C++ strings with C library functions
body: <p>The error occurs when I try to use the atoi(const char*) function in the following line...</p>
  
  <pre><code>externalEncryptionRawHolder[u] = atoi(parser.next()); 
  </code></pre>
  
  <p>The 'parser' object is a string parser and the 'next' method returns a string. I think the error has something to do with the fact that the string within the 'atoi' function isn't a constant... but I'm not sure. The gist of the error is 'cannot convert string to const char *'. How can I make my string constant? Any help would be very appreciated (by the way, in case you're wondering what the index 'u' is, this is within a 'for' loop). </p>