libft/sources/pf_srcs/process_c.c
void	ft_process_c(t_format *f)
{
	int		nb;
	wint_t	c;

	if (f->len_mod == l)
	{
		c = va_arg(f->list, wint_t);
		f->out_str = ft_strnew(1);
		f->out_str[0] = c;
	}
	else
	{
		nb = va_arg(f->list, int);
		f->out_str = ft_strnew(1);
		f->out_str[0] = (unsigned char)nb;
	}
	f->i++;
	if (f->out_str == NULL)
		f->out_str[0] = 0;
	ft_print_c(f);
}
/*
** c Conversion
** If no l modifier is present, the int argument is converted to an unsigned
** char, and the resulting character is written.  If an l modifier is present,
** the wint_t (wide character) argument is converted to a multibyte sequence
** by a call to the wcrtomb(3) function, with a conversion state starting
** in the initial state, and the resulting multibyte string is written.
*/
c Conversion
If no l modifier is present, the int argument is converted to an unsigned
char, and the resulting character is written.  If an l modifier is present,
the wint_t (wide character) argument is converted to a multibyte sequence
by a call to the wcrtomb(3) function, with a conversion state starting
in the initial state, and the resulting multibyte string is written.
c Conversion If no l modifier is present the int argument is converted to an unsigned char and the resulting character is written . If an l modifier is present the wint_t ( wide character ) argument is converted to a multibyte sequence by a call to the wcrtomb ( 3 ) function with a conversion state starting in the initial state and the resulting multibyte string is written .
void	ft_process_c(t_format *f)
{
	int		nb;
	wint_t	c;
	if (f->len_mod == l)
	{
		c = va_arg(f->list, wint_t);
		f->out_str = ft_strnew(1);
		f->out_str[0] = c;
	}
	else
	{
		nb = va_arg(f->list, int);
		f->out_str = ft_strnew(1);
		f->out_str[0] = (unsigned char)nb;
	}
	f->i++;
	if (f->out_str == NULL)
		f->out_str[0] = 0;
	ft_print_c(f);
}
void ft_process_c ( t_format * f ) { int nb ; wint_t c ; if ( f -> len_mod == l ) { c = va_arg ( f -> list , wint_t ) ; f -> out_str = ft_strnew ( 1 ) ; f -> out_str [ 0 ] = c ; } else { nb = va_arg ( f -> list , int ) ; f -> out_str = ft_strnew ( 1 ) ; f -> out_str [ 0 ] = ( unsigned char ) nb ; } f -> i ++ ; if ( f -> out_str == NULL ) f -> out_str [ 0 ] = 0 ; ft_print_c ( f ) ; }
c Conversion
If no l modifier is present, the int argument is converted to an unsigned
char, and the resulting character is written.
c Conversion If no l modifier is present the int argument is converted to an unsigned char and the resulting character is written .