libft
ft_isalpha.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_isalpha.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/05 00:14:10 by unite #+# #+# */
10 /* Updated: 2020/07/16 03:05:07 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 
20 int ft_isalpha(int c)
21 {
22  if (c >= 'a' && c <= 'z')
23  return (1);
24  else if (c >= 'A' && c <= 'Z')
25  return (1);
26  else
27  return (0);
28 }
ft_isalpha
int ft_isalpha(int c)
Replicates behaviour of isalpha from libc.
Definition: ft_isalpha.c:20
libft.h