From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- malloc/block_allocator/utils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 malloc/block_allocator/utils.h (limited to 'malloc/block_allocator/utils.h') diff --git a/malloc/block_allocator/utils.h b/malloc/block_allocator/utils.h new file mode 100644 index 0000000..7573945 --- /dev/null +++ b/malloc/block_allocator/utils.h @@ -0,0 +1,16 @@ +#ifndef UTILS_H +#define UTILS_H + +#include "allocator.h" + +/* + * Print datas the `meta` block contains. + */ +void read_data(struct blk_meta *meta); + +/* + * Write `data` in the `meta` block. + */ +void write_data(struct blk_meta *meta, char *data, size_t n); + +#endif /* !UTILS_H */ -- cgit v1.2.3