From 30e8e14cba8b278cbb15ff74d9447482e828b7aa Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 8 May 2024 12:31:49 +0200 Subject: Add a typedef for a memory allocator --- include/_alloc_fn.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/_alloc_fn.h diff --git a/include/_alloc_fn.h b/include/_alloc_fn.h new file mode 100644 index 0000000..0ff6b58 --- /dev/null +++ b/include/_alloc_fn.h @@ -0,0 +1,6 @@ +#ifndef MLIB__ALLOC_FN_H +#define MLIB__ALLOC_FN_H + +typedef void *(*alloc_fn)(void *ctx, void *ptr, size_t old, size_t new); + +#endif /* !MLIB__ALLOC_FN_H */ -- cgit v1.2.3