-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strisascii.c
28 lines (26 loc) · 1.12 KB
/
ft_strisascii.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_strisascii.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: davfelix <[email protected]> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/11/09 16:39:11 by davfelix #+# ## ## #+# */
/* Updated: 2018/11/15 11:48:35 by davfelix ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include "libft.h"
int ft_strisascii(char *str)
{
if (!*str)
return (0);
while (*str)
{
if (*str >= 0 && *str <= 127)
str++;
else
return (0);
}
return (1);
}