From 2fb8dc632b4c007033d9a40c6d6ab060d1ea1fe3 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 31 Jan 2016 14:46:55 +0100 Subject: Working version --- test.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test.c (limited to 'test.c') diff --git a/test.c b/test.c new file mode 100644 index 0000000..64c3e04 --- /dev/null +++ b/test.c @@ -0,0 +1,25 @@ +#include +#include + +double test_double(double x) { + return x * 0.5; +} + +char* test_string(char* s) { + int l = strlen(s); + char* r = malloc(sizeof(char) * (l + 1)); + int i = 0; + for (; i