aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-08 12:31:49 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-08 12:31:49 +0200
commit30e8e14cba8b278cbb15ff74d9447482e828b7aa (patch)
tree7515c6217b2e5e714ced04db51098f6d352e9dcb /include
parent19621b67f7f23518df1c27d50c4d52dc99f6f65c (diff)
Add a typedef for a memory allocator
Diffstat (limited to 'include')
-rw-r--r--include/_alloc_fn.h6
1 files changed, 6 insertions, 0 deletions
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 */