title: Can I pass char* to const char* in C?
body: <p>I am implementing a function that converts string into double in C. The function is not destructive, i.e. I do not modify the string passed and I just read it in the function. I want to pass char*, const char*, and also string literal to the function.</p>
  
  <p>Is the following function appropriate for this purpose? I think the question comes down to whether passing char* to const char* is defined and allowed in C.</p>
  
  <pre><code>double str2double( const char* input);
  </code></pre>
  
  <p>Thank you. (I've found some similar question title, but their answers are vague for me, and I am asking here.)</p>