repositories
/
sws1-1415.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of github.com:dopefishh/sws1
[sws1-1415.git]
/
ass2
/
mart
/
sws1-s4109503-s4202015
/
exercise1d.c
1
#include <inttypes.h>
2
#include <stdio.h>
3
4
int
main
(
void
)
5
{
6
FILE
*
f
=
fopen
(
"/dev/urandom"
,
"r"
);
7
uint16_t
c
;
8
do
{
9
c
=
fscanf
(
f
,
SCNu16
);
10
printf
(
"%04x
\n
"
,
c
);
11
}
while
(
c
!=
42
);
12
fclose
(
f
);
13
return
0
;
14
}