-
Notifications
You must be signed in to change notification settings - Fork 0
/
prf_print_u.c
24 lines (21 loc) · 1.09 KB
/
prf_print_u.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* prf_print_u.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aklein <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 02:19:06 by aklein #+# #+# */
/* Updated: 2023/11/14 20:17:02 by aklein ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int print_u(t_print *print)
{
unsigned long nbr;
nbr = va_arg(print->ap, unsigned int);
print->printed += count_digits_ui(nbr);
if (!ft_safe_putnbr_ul_fd(nbr, print->fd))
return (0);
return (1);
}