aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 081b60c4..15f93363 100644
--- a/src/system.h
+++ b/src/system.h
@@ -16,6 +16,10 @@ serd_fopen(const char* path, const char* mode);
SERD_MALLOC_FUNC void*
serd_malloc_aligned(size_t alignment, size_t size);
+/// Allocate a zeroed buffer aligned to `alignment` bytes
+SERD_MALLOC_FUNC void*
+serd_calloc_aligned(size_t alignment, size_t size);
+
/// Allocate an aligned buffer for I/O
SERD_MALLOC_FUNC void*
serd_allocate_buffer(size_t size);