-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_char.c
22 lines (20 loc) · 1.1 KB
/
ft_char.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_char.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: asibille <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/14 11:30:27 by asibille #+# #+# */
/* Updated: 2022/01/14 11:30:34 by asibille ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_char(char c, t_conv_flags *fl, int *size)
{
if (!(fl->minus))
ft_flag_width_d((size_t) 1, fl, size, 0);
ft_putchar_count(c, 1, size);
if (fl->minus)
ft_flag_width_d((size_t) 1, fl, size, 0);
}