diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /malloc/block_allocator/utils.h | |
Diffstat (limited to 'malloc/block_allocator/utils.h')
| -rw-r--r-- | malloc/block_allocator/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 */ |
