title: Multi-character character constant [-Wmultichar] Error in C
body: <pre><code>#include &lt;stdio.h&gt;
  main ()
  {
      int c;
      while ((c = getchar()) != EOF ) {
          if (c == '\t') {
              while ((c = getchar()) == '\t');
                  putchar ('\\t');
          }
          else (c == '\b') {
              while ((c = getchar()) == '\b');
                  putchar ("\\b");
          }
          else (c == '\\' ) {
              while ((c = getchar()) == '\\');
                  putchar ("\\");
          }
          putchar(c);
      }
  }
  </code></pre>
  
  <p>I get the following error when trying to compile:</p>
  
  <blockquote>
    <p>cpytbb.c: In function ‘main’:<br>
    cpytbb.c:8:14: warning: multi-charactercharacter constant [-Wmultichar]<br>
    cpytbb.c:10:20: error: expected‘;’ before ‘{’ token     </p>
  </blockquote>
  
  <p>Please note that the second error is probably irrelevant to the issue. I'm new and I most likely have done some mistakes in my code.</p>
  
  <p>In case it's needed, I'm using gcc.</p>
  
  <p>Edit: I'm trying 'print' out \t \b and \ as simple text. As an example if I hit 'backspace' it will print \b</p>