summaryrefslogtreecommitdiff
path: root/libft/ft_isalpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/ft_isalpha.c')
-rw-r--r--libft/ft_isalpha.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libft/ft_isalpha.c b/libft/ft_isalpha.c
new file mode 100644
index 0000000..8e3ac7b
--- /dev/null
+++ b/libft/ft_isalpha.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_isalpha.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2022/09/26 12:23:43 by kdx #+# #+# */
+/* Updated: 2022/09/26 16:59:14 by kdx ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_isalpha(int c)
+{
+ return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
+}