25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* :::::::: */
|
||
|
/* ft_putull.c :+: :+: :+: */
|
||
|
/* +:+ */
|
||
|
/* By: djonker <marvin@codam.nl> +#+ */
|
||
|
/* +#+ */
|
||
|
/* Created: 2020/11/13 04:22:10 by djonker #+# #+# */
|
||
|
/* Updated: 2023/02/07 00:40:46 by houtworm ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "../libft.h"
|
||
|
|
||
|
void ft_putull(unsigned long long n)
|
||
|
{
|
||
|
if (n >= 10)
|
||
|
{
|
||
|
ft_putull(n / 10);
|
||
|
ft_putull(n % 10);
|
||
|
}
|
||
|
else
|
||
|
ft_putchar(n + '0');
|
||
|
}
|