/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_putlong.c :+: :+: :+: */ /* +:+ */ /* By: djonker +#+ */ /* +#+ */ /* Created: 2020/11/13 04:22:10 by djonker #+# #+# */ /* Updated: 2023/02/07 00:40:43 by houtworm ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" void ft_putlong(long long n) { if (n < -9223372036854775807) return (ft_putstr("-9223372036854775808")); if (n < 0) { ft_putchar('-'); n = n * -1; } if (n >= 10) { ft_putlong(n / 10); ft_putlong(n % 10); } else ft_putchar(n + '0'); }