minishell/allocator/include/aq/melloc.h
Maix0 5d2202a0c9
Allocator V1.0
* Allocator Version 1.0
2024-05-18 15:05:28 +02:00

28 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* melloc.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/14 17:54:03 by maiboyer #+# #+# */
/* Updated: 2024/05/16 15:43:00 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MELLOC_H
#define MELLOC_H
#include "aq/allocator.h"
void *m_malloc(t_allocator *self, t_usize size);
void *m_alloc_array(t_allocator *self, t_usize size, t_usize count);
void *m_realloc(t_allocator *self, void *ptr, t_usize min_size);
void *m_realloc_array(t_allocator *self, void *ptr, t_usize size,
t_usize count);
void m_free(t_allocator *self, void *ptr);
void m_uninit(t_allocator *self);
t_allocator m_init(void);
#endif /* MELLOC_H */