add libft, add gitignore
This commit is contained in:
18
libft/ft_isdigit.c
Executable file
18
libft/ft_isdigit.c
Executable file
@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_isdigit.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/07/13 18:10:01 by tomoron #+# #+# */
|
||||
/* Updated: 2023/10/30 12:13:53 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
int ft_isdigit(int c)
|
||||
{
|
||||
if (!(c >= '0' && c <= '9'))
|
||||
return (0);
|
||||
return (1);
|
||||
}
|
Reference in New Issue
Block a user