aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorCamil Staps2016-02-01 17:47:57 +0100
committerCamil Staps2016-02-01 17:47:57 +0100
commit921200f7d3790ba5a1f61d750b6d84bf917db966 (patch)
tree3409353cfe827abdc0b9fabacf8bef787d1912ed /test.c
parentBetter practices string copying (diff)
Void return typeHEADmaster
Diffstat (limited to 'test.c')
-rw-r--r--test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.c b/test.c
index 9653d96..0396e7b 100644
--- a/test.c
+++ b/test.c
@@ -22,6 +22,7 @@ SOFTWARE. */
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
double test_double(double x) {
return x * 0.5;
@@ -45,3 +46,7 @@ int test_two_params(int a, int b) {
return a + b;
}
+void test_void(char* s) {
+ printf("%s", s);
+}
+