-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchar_in_set.c
More file actions
25 lines (23 loc) · 1.01 KB
/
char_in_set.c
File metadata and controls
25 lines (23 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* char_in_set.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tpeters <tpeters@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/17 13:07:43 by tpeters #+# #+# */
/* Updated: 2022/11/06 21:10:07 by tpeters ### ########.fr */
/* */
/* ************************************************************************** */
int char_in_set(char c, char const *set)
{
unsigned int i;
i = 0;
while (set[i])
{
if (set[i] == c)
return (1);
i++;
}
return (0);
}