repositories
/
sws1-1415.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
d49b9f5
)
Merge branch 'master' of github.com:dopefishh/sws1
author
Mart Lubbers
<mart@martlubbers.net>
Mon, 9 Feb 2015 15:01:54 +0000
(16:01 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Mon, 9 Feb 2015 15:01:54 +0000
(16:01 +0100)
Conflicts:
ass2/mart/sws1-s4109503-s4202015/exercise1d
ass2/mart/sws1-s4109503-s4202015/exercise1d.c
ass2/mart/sws1-s4109503-s4202015/exercise1d.c
patch
|
blob
|
history
diff --git
a/ass2/mart/sws1-s4109503-s4202015/exercise1d.c
b/ass2/mart/sws1-s4109503-s4202015/exercise1d.c
index
3200729
..
7555bc9
100644
(file)
--- a/
ass2/mart/sws1-s4109503-s4202015/exercise1d.c
+++ b/
ass2/mart/sws1-s4109503-s4202015/exercise1d.c
@@
-1,4
+1,4
@@
-#include <
stdint
.h>
+#include <
inttypes
.h>
#include <stdio.h>
int main(void)
@@
-6,7
+6,7
@@
int main(void)
FILE *f = fopen("/dev/urandom", "r");
uint16_t c;
do {
- c = f
getc(f) + fgetc(f) * 256
;
+ c = f
scanf(f, SCNu16)
;
printf("%04x\n", c);
} while(c != 42);
fclose(f);