-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_wdt.c
More file actions
25 lines (23 loc) · 1.08 KB
/
ft_wdt.c
File metadata and controls
25 lines (23 loc) · 1.08 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_wdt.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbiodies <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/27 10:47:05 by rbiodies #+# #+# */
/* Updated: 2021/10/31 13:15:12 by rbiodies ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_wdt(t_list *flag, int wdt, int minus, int has_zero)
{
while (wdt - minus > 0)
{
if (has_zero)
flag->len += write(1, "0", 1);
else
flag->len += write(1, " ", 1);
wdt--;
}
}