-
Notifications
You must be signed in to change notification settings - Fork 0
/
flag_mz.c
32 lines (29 loc) · 1.14 KB
/
flag_mz.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
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* flag_mz.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vrodrigo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/09 11:44:52 by vrodrigo #+# #+# */
/* Updated: 2020/03/09 11:45:05 by vrodrigo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void flag_minus(t_data_args *list)
{
while (list->format[list->i] == '-')
{
list->minus = 1;
list->i++;
}
}
void flag_zero(t_data_args *list)
{
while (list->format[list->i] == '0')
{
if (list->minus == 0)
list->zero = 1;
list->i++;
}
}