base struct
This commit is contained in:
21
lib/libft/srcs/check/ft_isalpha.c
Normal file
21
lib/libft/srcs/check/ft_isalpha.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_isalpha.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/09 14:23:31 by nalebrun #+# #+# */
|
||||
/* Updated: 2024/11/25 16:14:36 by nalebrun ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../libft.h"
|
||||
|
||||
int ft_isalpha(int a)
|
||||
{
|
||||
if ((a >= 65 && a <= 90) || (a >= 97 && a <= 122))
|
||||
return (1);
|
||||
else
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user