-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_flag.c
21 lines (19 loc) · 1.03 KB
/
is_flag.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_flag.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sprodatu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/14 05:33:53 by sprodatu #+# #+# */
/* Updated: 2024/05/03 21:54:47 by sprodatu ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include "ft_printf.h"
int is_flag(char c)
{
if (c == '-' || c == '+' || c == ' ' || c == '#' || c == '0')
return (1);
return (0);
}