repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct PPTP server firewall rules chain.
[tomato/davidwu.git]
/
release
/
src
/
router
/
layer7
/
protocols
/
testing
/
randprintable.c
blob
0c666cc50b43f728829e48450b8d75f0eee5faa3
1
#include <stdio.h>
2
#include <ctype.h>
3
#include <stdlib.h>
4
#include <time.h>
5
#include <unistd.h>
6
7
int
main
()
8
{
9
char
c
;
10
srand
(
time
(
NULL
) *
getpid
());
11
12
while
(
1
)
13
{
14
c
= (
char
)
rand
()%
256
;
15
if
(
isprint
(
c
) ||
isspace
(
c
))
16
{
17
printf
(
"%c"
,
c
);
18
}
19
}
20
return
0
;
21
}