aboutsummaryrefslogtreecommitdiff
path: root/8.6/main.c
diff options
context:
space:
mode:
Diffstat (limited to '8.6/main.c')
-rw-r--r--8.6/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/8.6/main.c b/8.6/main.c
new file mode 100644
index 0000000..e1cecb6
--- /dev/null
+++ b/8.6/main.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <string.h>
+#include "malloc.h"
+
+int main(void)
+{
+ char *s = my_calloc(sizeof(char), 11);
+
+ strcpy(s, "just werks");
+ printf("%s\n", s);
+ my_free(s);
+
+ return 0;
+}