push_swap/libft/ft_isdigit.c
2024-04-20 14:48:16 +02:00

20 lines
1,008 B
C
Executable file

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 12:44:28 by rparodi #+# #+# */
/* Updated: 2024/03/06 11:55:32 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "../includes/push_swap.h"
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (c);
return (0);
}