From 2930ba4f32680e245c1dae66197153abdf6502a6 Mon Sep 17 00:00:00 2001 From: Benedict Date: Tue, 21 Feb 2017 12:59:34 +0100 Subject: added lib to git and moved set2 to subdir --- set2/Makefile | 10 ++++++++++ set2/task9.c | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 set2/Makefile create mode 100644 set2/task9.c (limited to 'set2') diff --git a/set2/Makefile b/set2/Makefile new file mode 100644 index 0000000..abbacc0 --- /dev/null +++ b/set2/Makefile @@ -0,0 +1,10 @@ +LIB=../lib/lib2.c +CC=gcc +CFLAGS := -g -Wall $(CFLAGS) + +all: task9 + +task9: + $(CC) $(CFLAGS) task9.c $(LIB) -o task9 +clean: + rm task9 diff --git a/set2/task9.c b/set2/task9.c new file mode 100644 index 0000000..9b91174 --- /dev/null +++ b/set2/task9.c @@ -0,0 +1,14 @@ +#include "../lib/lib2.h" +#include + +int main(int argc, char **argv) +{ + // implemten PKCS#7 padding + char *result = NULL; + + result = pkcs7_padding("YELLOW SUBMARINE", 16, 10); + printf("%s\n", result); + + free(result); + return 0; +} -- cgit v1.2.3-70-g09d2