-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_type.c
More file actions
41 lines (36 loc) · 1.13 KB
/
Copy pathcheck_type.c
File metadata and controls
41 lines (36 loc) · 1.13 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_type.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: imelnych <imelnych@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/05 15:18:07 by imelnych #+# #+# */
/* Updated: 2018/02/02 20:04:35 by imelnych ### ########.fr */
/* */
/* ************************************************************************** */
#include "printflib.h"
int check_type(char c)
{
int i;
i = 0;
while (TP[i])
{
if (c == TP[i])
return (1);
i++;
}
return (0);
}
int check_flags(char c)
{
int i;
i = 0;
while (FLAGS[i])
{
if (c == FLAGS[i])
return (1);
i++;
}
return (0);
}