repositories
/
sws1-1415.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
File closen..
[sws1-1415.git]
/
ass2
/
chris
/
sws1-s4109503-s4202015
/
exercise1b.c
1
#include<stdio.h>
2
3
int
main
(){
4
FILE
*
fp
=
fopen
(
"/dev/urandom"
,
"r"
);
5
char
buffer
=
0
;
6
do
{
7
fread
(&
buffer
,
1
,
1
,
fp
);
8
printf
(
"%i %u %#x
\n
"
,
buffer
,
buffer
,
buffer
);
9
}
while
(
buffer
!=
42
);
10
fclose
(
fp
);
11
return
0
;
12
}