aboutsummaryrefslogtreecommitdiff
path: root/examples/alloc.ct
diff options
context:
space:
mode:
Diffstat (limited to 'examples/alloc.ct')
-rw-r--r--examples/alloc.ct18
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/alloc.ct b/examples/alloc.ct
deleted file mode 100644
index 11eed78..0000000
--- a/examples/alloc.ct
+++ /dev/null
@@ -1,18 +0,0 @@
-/* from c bindings */
-
-pub alloc(s: usize) *void
-{
- p: *u8 = malloc(s);
- assert(p, "memory allocation failed\n");
- return p;
-}
-
-pub dealloc(p *void)
-{
- free(p);
-}
-
-pub realloc(p *, s usize) *void
-{
- realloc(p, s);
-}