-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_in.c
21 lines (19 loc) · 1016 Bytes
/
ft_in.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_in.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rvandepu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/13 06:23:32 by rvandepu #+# #+# */
/* Updated: 2024/10/13 06:24:48 by rvandepu ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdbool.h>
bool ft_in(char c, char *set)
{
while (*set)
if (c == *set++)
return (true);
return (false);
}