Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 385 Bytes
#include <stdio.h>
main() {
int c;
while ((c = getchar()) != EOF) {
switch (c) {
case '\b':
putchar('\\');
putchar('b');
break;
case '\t':
putchar('\\');
putchar('t');
break;
case '\\':
putchar('\\');
putchar('\\');
break;
default:
putchar(c);
break;
}
}
}