Init commit + ft_isalpha

This commit is contained in:
Tanguy MAZE
2018-04-04 11:28:27 +02:00
commit a7d5f22b0a
4 changed files with 123 additions and 0 deletions

28
ft_isalpha.c Normal file
View File

@@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/04 10:56:47 by tmaze #+# #+# */
/* Updated: 2018/04/04 11:23:21 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isupper(int c)
{
return (c >= 'A' && c <= 'Z');
}
int ft_islower(int c)
{
return (c >= 'a' && c <= 'z');
}
int ft_isalpha(int c)
{
return (ft_islower(c) || ft_isupper(c));
}