add MALLOC_DEBUG_LEVEL environment variable support

This commit is contained in:
2024-12-09 20:08:28 +01:00
parent 039d29f0d7
commit 9824c9d230
12 changed files with 205 additions and 19 deletions

20
libft/ft_putulnbr.c Executable file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putulnbr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/09 17:24:29 by tomoron #+# #+# */
/* Updated: 2024/12/09 17:24:33 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putulnbr_fd(unsigned long nb, int fd)
{
if (nb >= 10)
ft_putulnbr_fd(nb / 10, fd);
ft_putchar_fd((nb % 10) + 48, fd);
}