-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_valid_flag_bonus.c
More file actions
21 lines (19 loc) · 1.05 KB
/
Copy pathft_valid_flag_bonus.c
File metadata and controls
21 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_valid_flag_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: obouizi <obouizi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/01 14:18:41 by obouizi #+# #+# */
/* Updated: 2024/12/05 20:50:10 by obouizi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_bonus.h"
int is_valid_flag(char c)
{
if (c == '-' || (c >= '0' && c <= '9')
|| c == ' ' || c == '+' || c == '.' || c == '#')
return (1);
return (0);
}