title: Arduino: how do I pass a String constant into a char array?
body: <p>I have noticed that variables with a data type of String use way more memory than C strings do, so I'd like to use C strings wherever possible. However I've run into a problem casting a String constant into a C string when I call a method with a C string parameter.</p>
  
  <p>This is what I'm trying to do but I keep getting a warning that I'm using a deprecated conversion from string constant to 'char*'. How do I do the conversion correctly?</p>
  
  <pre><code>void drawButton(int x, int y, int width, int height, char text[ ]) {
    // do some stuff
  }
  
  void loop() {
    drawButton(30, 70, 150, 50, "Continue");
  }
  </code></pre>