-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strisalpha.c
28 lines (26 loc) · 1.16 KB
/
ft_strisalpha.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
28
/* ************************************************************************** */
/* LE - / */
/* / */
/* ft_strisalpha.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: davfelix <marvin@le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/11/09 15:55:36 by davfelix #+# ## ## #+# */
/* Updated: 2018/11/15 11:48:18 by davfelix ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include "libft.h"
int ft_strisalpha(char *str)
{
if (!*str)
return (0);
while (*str)
{
if ((*str >= 'a' && *str <= 'z') || (*str >= 'A' && *str <= 'Z'))
str++;
else
return (0);
}
return (1);
}