-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_str_isalnum.c
27 lines (24 loc) · 1.04 KB
/
ft_str_isalnum.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
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomlulu <tomlulu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/08 11:18:39 by tomlulu #+# #+# */
/* Updated: 2018/02/08 11:21:29 by tomlulu ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_str_isalnum(const char *str)
{
char *s;
s = (char *)str;
while (*s)
{
if (ft_isalnum(*s) == 0)
return (0);
s++;
}
return (1);
}