1.10.c 306 B

12345678910111213141516171819202122
  1. #include <stdio.h>
  2. /** escapes the input */
  3. int main()
  4. {
  5. char c=(char)1;
  6. while( c != EOF )
  7. {
  8. c = getchar();
  9. if (c == '\b')
  10. printf("\\b");
  11. else if (c == '\\')
  12. printf("\\\\");
  13. else if (c == '\t')
  14. printf("\\t");
  15. else if (c == EOF);
  16. else
  17. putchar(c);
  18. }
  19. return (0);
  20. }