-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_handle_minus_bonus.c
More file actions
28 lines (25 loc) · 1.11 KB
/
Copy pathft_handle_minus_bonus.c
File metadata and controls
28 lines (25 loc) · 1.11 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
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_handle_minus_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: obouizi <obouizi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/04 15:36:08 by obouizi #+# #+# */
/* Updated: 2024/12/05 20:47:45 by obouizi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_bonus.h"
int handle_minus(t_flags *flags, va_list args)
{
int len;
len = 0;
if (!flags->dash)
len = check_specifier(flags->specifier, args);
while (len < flags->width)
{
ft_putchar(' ');
len++;
}
return (len);
}