title: UTF8String for non const string
body: <p>I found a way to set a string to a char array. I use the following code:</p>
  
  <pre><code>NSString *string = [[NSString alloc] initWithFormat:@"This is a string!"];
  char *c = [string UTF8String];
  </code></pre>
  
  <p>However, I get the warning, "Initializing 'char <em>' with an expresion type of 'const char</em>' discards qualifiers.</p>
  
  <p>It works fine, but I feel like there's a better way to do it, and I'd rather not have a ton of warnings. Does anyone have any suggestions?</p>