title: How to fix "warning: multi-character character constant [-Wmultichar]"
body: <p>So  basically the function searches a file for the '\t' (tab) character and when it finds it, its suppose to replace it with a '^I'</p>
  
  <p>Problem is <code>c = '^I'</code> produces a warning <code>warning: multi-character character constant [-Wmultichar]</code>. The other problem is only the I shows up not the ^. </p>
  
  <p>If I change it to <code>c = "^I"</code> I get this warning "Warning: Assignment makes integer from pointer without a cast". This way also puts "\\" instead of ^I</p>
  
  <p>How can I solve this? Is there a better way to do it?</p>
  
  <pre><code>if ((fileContents = fopen("fileContents.txt", "r")) == 0) 
  {
      perror("fopen");
      return 1; 
  }
  
  while ((c = fgetc(fileContents)) != EOF)
  {
  
      if (c == '\t')
      {
          c = '^I';
      }
      putchar(c); 
  }
  </code></pre>