Made a memory allocator (crude)
This commit is contained in:
parent
b5c7344851
commit
941bac31b6
53 changed files with 469 additions and 146 deletions
|
|
@ -101,8 +101,8 @@ int main(void) {
|
|||
printf("\n");
|
||||
printf("\n");
|
||||
}
|
||||
free(dest_libc);
|
||||
free(dest_ft);
|
||||
me_free(dest_libc);
|
||||
me_free(dest_ft);
|
||||
}
|
||||
}
|
||||
R*/
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ int main(void) {
|
|||
printf("\n");
|
||||
printf("\n");
|
||||
}
|
||||
free(dest_libc);
|
||||
free(dest_ft);
|
||||
me_free(dest_libc);
|
||||
me_free(dest_ft);
|
||||
}
|
||||
}
|
||||
R*/
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static t_usize local_count_words(t_const_str str, char chr)
|
|||
static t_str *local_split_freeall(t_str **to_free)
|
||||
{
|
||||
while (*to_free)
|
||||
free(*(to_free++));
|
||||
me_free(*(to_free++));
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue