summaryrefslogtreecommitdiff
path: root/task6.c
diff options
context:
space:
mode:
authorBenedict <benedict@0xb8000.de>2016-03-03 21:49:01 +0100
committerBenedict <benedict@0xb8000.de>2017-02-21 13:00:24 +0100
commitbd7b98c2aac8fdfd128aff832c663d60d3374d63 (patch)
tree45b71ac2935cbf9f64e6e892b912868990af7c75 /task6.c
parent383732972f4c00dce231f61ac7375ae212e0d9c7 (diff)
reorgantzied code into libaray file
For every task you may create a new file and implenet the task there by using functions from the lib.c file. Added Makefile for the different tasks.
Diffstat (limited to 'task6.c')
-rw-r--r--task6.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/task6.c b/task6.c
new file mode 100644
index 0000000..d807b69
--- /dev/null
+++ b/task6.c
@@ -0,0 +1,21 @@
+#include "lib.h"
+
+void main()
+{
+ FILE *fp;
+ int keysize;
+
+
+ // data come on stdin (base64 decoded already)
+
+ for(keysize=2; keysize < 40; keysize++) {
+ char *string1 = malloc(keysize+1);
+ char *string2 = malloc(keysize+1);
+
+ //while(fscanf(fp, "%n"
+
+ free(string1);
+ free(string2);
+
+ }
+}