minishell
is_valid_flag_char.c
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* is_valid_flag_char.c :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: kfujita <kfujita@student.42tokyo.jp> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2022/04/23 22:20:42 by kfujita #+# #+# */
9 /* Updated: 2022/04/26 00:22:59 by kfujita ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
13 #include "ft_printf_local.h"
14 #include "../ft_is/ft_is.h"
15 
16 bool is_valid_flag_char(char c)
17 {
18  return (c == '-' || ft_isdigit(c) || c == '.'
19  || c == '#' || c == ' ' || c == '+');
20 }
int ft_isdigit(int c)
Definition: ft_isdigit.c:15
bool is_valid_flag_char(char c)