21 lines
996 B
C
21 lines
996 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isdigit.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mdenys <mdenys@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2020/10/29 14:29:08 by mdenys #+# #+# */
|
|
/* Updated: 2020/10/30 11:52:05 by mdenys ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isdigit(int ch)
|
|
{
|
|
if (ch >= '0' && ch <= '9')
|
|
return (1);
|
|
return (0);
|
|
}
|