22 lines
1.0 KiB
C
22 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isalnum.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/10/30 13:03:43 by madumerg #+# #+# */
|
|
/* Updated: 2023/11/02 14:58:15 by madumerg ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isalnum(int i)
|
|
{
|
|
if ((i >= '0' && i <= '9') || (i >= 'a' && i <= 'z')
|
|
|| (i >= 'A' && i <= 'Z'))
|
|
return (1);
|
|
return (0);
|
|
}
|