libft/sources/pf_srcs/process_u.c
void	ft_process_u(t_format *f, const char *format)
{
	long nb;

	nb = va_arg(f->list, long);
	f->i++;
	if (f->len_mod == l || f->len_mod == ll || f->len_mod == j || \
		f->len_mod == z || format[f->i - 1] == 'U')
		f->out_str = ft_ultoa(nb);
	else if (f->len_mod == L || f->len_mod == nomod)
		f->out_str = ft_uitoa((unsigned int)nb);
	else if (f->len_mod == h)
		f->out_str = ft_uitoa((unsigned short)nb);
	else if (f->len_mod == hh)
		f->out_str = ft_uitoa((unsigned char)nb);
	else
		ft_error(f);
	ft_print_u(f);
}
/*
** u Conversion
** The unsigned int argument is converted to unsigned decimal notation.
** The precision, if any, gives the minimum number of digits that must appear;
** if the converted value requires fewer digits, it is padded on the left
**  with zeros.  The default precision is 1.
** When 0 is printed with an explicit precision 0, the output is empty.
*/
u Conversion
The unsigned int argument is converted to unsigned decimal notation.
The precision, if any, gives the minimum number of digits that must appear;
if the converted value requires fewer digits, it is padded on the left
with zeros.  The default precision is 1.
When 0 is printed with an explicit precision 0, the output is empty.
u Conversion The unsigned int argument is converted to unsigned decimal notation . The precision if any gives the minimum number of digits that must appear ; if the converted value requires fewer digits it is padded on the left with zeros . The default precision is 1 . When 0 is printed with an explicit precision 0 the output is empty .
void	ft_process_u(t_format *f, const char *format)
{
	long nb;
	nb = va_arg(f->list, long);
	f->i++;
	if (f->len_mod == l || f->len_mod == ll || f->len_mod == j || \
		f->len_mod == z || format[f->i - 1] == 'U')
		f->out_str = ft_ultoa(nb);
	else if (f->len_mod == L || f->len_mod == nomod)
		f->out_str = ft_uitoa((unsigned int)nb);
	else if (f->len_mod == h)
		f->out_str = ft_uitoa((unsigned short)nb);
	else if (f->len_mod == hh)
		f->out_str = ft_uitoa((unsigned char)nb);
	else
		ft_error(f);
	ft_print_u(f);
}
void ft_process_u ( t_format * f , const char * format ) { long nb ; nb = va_arg ( f -> list , long ) ; f -> i ++ ; if ( f -> len_mod == l || f -> len_mod == ll || f -> len_mod == j || f -> len_mod == z || format [ f -> i - 1 ] == ' ' ) f -> out_str = ft_ultoa ( nb ) ; else if ( f -> len_mod == L || f -> len_mod == nomod ) f -> out_str = ft_uitoa ( ( unsigned int ) nb ) ; else if ( f -> len_mod == h ) f -> out_str = ft_uitoa ( ( unsigned short ) nb ) ; else if ( f -> len_mod == hh ) f -> out_str = ft_uitoa ( ( unsigned char ) nb ) ; else ft_error ( f ) ; ft_print_u ( f ) ; }
u Conversion
The unsigned int argument is converted to unsigned decimal notation.
u Conversion The unsigned int argument is converted to unsigned decimal notation .