repo.or.cz
/
C-Programming-Examples.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added stack address randomization example.
[C-Programming-Examples.git]
/
ex_1-10.c
blob
bb5e69e322eee4c73b428e5b2b8a63b41c657dc1
1
#include <stdio.h>
2
3
main
()
4
{
5
char
c
;
6
7
while
((
c
=
getchar
()) !=
EOF
)
8
{
9
if
(
c
==
'
\t
'
)
10
printf
(
"
\\
t"
);
11
12
else if
(
c
==
'
\b
'
)
13
printf
(
"
\\
b"
);
14
15
else if
(
c
==
'
\\
'
)
16
printf
(
"
\\\\
"
);
17
18
else
19
putchar
(
c
);
20
21
}
22
}