Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char c;
- while((c = getch()) != EOF) {
- if(c == '\t')
- printf("\\t");
- else if(c == '\b')
- printf("\\b");
- else if(c == '\\')
- printf("\\\\");
- else if(c == '\r')
- printf("enter");
- else
- printf("%c",c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement