29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* mem_realloc.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/05/07 12:46:18 by maiboyer #+# #+# */
|
|
/* Updated: 2024/07/10 17:47:21 by maiboyer ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "me/mem/_allocator.h"
|
|
|
|
void *mem_realloc(void *ptr, t_usize size)
|
|
{
|
|
t_allocator *a;
|
|
|
|
a = global_allocator();
|
|
return (a->realloc(a, ptr, size));
|
|
}
|
|
|
|
void *mem_realloc_array(void *ptr, t_usize size, t_usize count)
|
|
{
|
|
t_allocator *a;
|
|
|
|
a = global_allocator();
|
|
return (a->realloc_array(a, ptr, size, count));
|
|
}
|