-
Notifications
You must be signed in to change notification settings - Fork 0
/
pf_reset_format.c
33 lines (30 loc) · 1.23 KB
/
pf_reset_format.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
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pf_reset_format.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gkhodizo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/07/23 00:03:35 by gkhodizo #+# #+# */
/* Updated: 2020/08/01 18:48:30 by gkhodizo ### ########.fr */
/* */
/* ************************************************************************** */
/*
** The reset_format() resets fmt struct.
*/
#include "ft_printf.h"
void reset_format(t_fmt *fmt)
{
fmt->is_null = 0;
fmt->is_minus = 0;
fmt->is_zero = 0;
fmt->width = 0;
fmt->is_precision = 0;
fmt->precision = 0;
fmt->negative_prec = 0;
fmt->specifier = '0';
ft_strdel(&fmt->spec_value);
fmt->is_value_negative = 0;
fmt->value_len = 0;
return ;
}