12345678910111213141516171819202122 |
- #include <stdio.h>
- /** escapes the input */
- int main()
- {
- char c=(char)1;
- while( c != EOF )
- {
- c = getchar();
- if (c == '\b')
- printf("\\b");
- else if (c == '\\')
- printf("\\\\");
- else if (c == '\t')
- printf("\\t");
- else if (c == EOF);
- else
- putchar(c);
- }
- return (0);
- }
|