23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isalnum.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/09/26 11:15:04 by cchauvet #+# #+# */
|
|
/* Updated: 2022/09/27 11:32:40 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isalnum(int c)
|
|
{
|
|
if ((('9' >= c && c >= '0')
|
|
|| ('z' >= c && c >= 'a')
|
|
|| ('Z' >= c && c >= 'A')))
|
|
return (1);
|
|
return (0);
|
|
}
|