makefile fix and other fixes

This commit is contained in:
David Gailleton
2025-11-12 16:45:04 +01:00
parent 3433a95ddd
commit 187e68e1aa
26 changed files with 88 additions and 61 deletions

View File

@@ -6,7 +6,7 @@
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/05 19:26:10 by dgaillet #+# #+# */
/* Updated: 2025/11/05 21:18:14 by dgaillet ### ########lyon.fr */
/* Updated: 2025/11/12 15:51:55 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
@@ -16,6 +16,9 @@ void *ft_calloc(size_t nmemb, size_t size)
{
void *all_mem;
if ((nmemb * size < nmemb || nmemb * size < size)
&& size > 0 && nmemb > 0)
return (NULL);
all_mem = malloc(size * nmemb);
if (!all_mem)
return (NULL);