UtilLib
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_isdigit.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: yantoine <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/07 10:06:07 by yantoine #+# #+# */
|
||||
/* Updated: 2023/11/08 08:06:49 by hexplor ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "libft.h"
|
||||
|
||||
int ft_isdigit(int c)
|
||||
{
|
||||
if ((c >= 48 && c <= 57) || c == 46)
|
||||
return (1);
|
||||
else
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user