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