libft
Loading...
Searching...
No Matches
ft_isalnum.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_isalnum.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2022/10/25 15:24:25 by tspoof #+# #+# */
9/* Updated: 2022/11/30 16:46:51 by tspoof ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15int ft_isalnum(int c)
16{
17 if (ft_isalpha(c) || ft_isdigit(c))
18 {
19 return (1);
20 }
21 return (0);
22}
int ft_isalnum(int c)
Is an alphabet or a number.
Definition ft_isalnum.c:15
int ft_isdigit(int c)
Check if char is digit.
Definition ft_isdigit.c:13
int ft_isalpha(int c)
Check if char is alphabet.
Definition ft_isalpha.c:13