title: Problem removing lines from TXT-file with strchr()
body: <p>I have a file with a header (first 12 lines) that ends with '\r\n' which I want to remove from the file. The program below received one warning on compiling, "multi-character character constant", and crashes when executed.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main () {
  
      FILE *file;
      char buffer[255];
      char *out;
      int ch = '\r\n';   &lt;--- multi-character character constant here
  
      file = fopen("test.txt", "r+");
  
      while(fgets(buffer, sizeof(buffer), file) != NULL)
      {
          out = strchr(buffer, ch);
          printf("%s", out+1);
      }
  
      fclose(file);
      return(0);
  
  }
  </code></pre>
  
  <p>Any ideas how this can be solved?</p>