-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isprintf_spec.c
24 lines (22 loc) · 1.14 KB
/
ft_isprintf_spec.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprintf_spec.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vpopovyc <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/21 18:20:04 by vpopovyc #+# #+# */
/* Updated: 2017/01/25 21:18:18 by vpopovyc ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/libft.h"
int ft_isprintf_spec(int c)
{
if (ft_isdigit(c))
return (1);
else if (c == '+' || c == ' ' || c == '-' || c == '.' || c == '#')
return (1);
else if (c == 'j' || c == 'l' || c == 'h' || c == 'z' || c == '*')
return (1);
return (0);
}