-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathin_format_conversions.c
More file actions
27 lines (24 loc) · 1.14 KB
/
in_format_conversions.c
File metadata and controls
27 lines (24 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* in_format_conversions.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hiroshiusui <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/31 02:37:48 by hiroshius #+# #+# */
/* Updated: 2018/01/31 02:37:49 by hiroshius ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
bool in_format_conversions(char c)
{
char *all_format_conversions;
all_format_conversions = "sSpdDioOuUxXcC%";
while (*all_format_conversions)
{
if (c == *all_format_conversions)
return (1);
all_format_conversions++;
}
return (0);
}