title: strrchr causing 'Cannot convert from const char * to char *'
body: <p>I am trying to compile some code that was given to me that I'm told compiles fine.  Perhaps on a different compiler.  I am using VS2010 and I have the following line:</p>
  
  <pre><code>char *dot = strrchr(filename, '.');
  </code></pre>
  
  <p>This causes the compiler error:</p>
  
  <blockquote>
    <p>"error C2440: 'initializing': cannot convert from 'const char *' to
    'char *'</p>
  </blockquote>
  
  <p>How come?  And how do I fix it?</p>