From 4f9d0247549b06ddb25b76bb425541190105cb48 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sun, 26 Jul 2026 19:20:30 -0700 Subject: functioning type system perhaps? --- ccc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ccc.c (limited to 'ccc.c') diff --git a/ccc.c b/ccc.c new file mode 100644 index 0000000..ca4eba1 --- /dev/null +++ b/ccc.c @@ -0,0 +1,12 @@ +#include "ccc.h" +#include +#include + +void* ccc_alloc(integral_t sz) { + void* ptr = calloc(1, sz); + if (ptr == NULL) { + fprintf(stderr, "ccc: out of memory\n"); + exit(1); + } + return ptr; +} -- cgit v1.2.3