mirror of
https://github.com/krislamo/knrc.git
synced 2024-11-12 17:30:34 +00:00
18 lines
224 B
C
18 lines
224 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
int c;
|
||
|
|
||
|
while ((c = getchar()) != EOF) {
|
||
|
if (c == '\t')
|
||
|
printf("\\t");
|
||
|
else if (c == '\b')
|
||
|
printf("\\b");
|
||
|
else if (c == '\\')
|
||
|
printf("\\\\");
|
||
|
else
|
||
|
printf("%c", c);
|
||
|
}
|
||
|
}
|