add MALLOC_DEBUG_LEVEL environment variable support
This commit is contained in:
20
libft/ft_putulnbr.c
Executable file
20
libft/ft_putulnbr.c
Executable 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);
|
||||
}
|
Reference in New Issue
Block a user