feat: add ft_isdigit function and header

This commit is contained in:
2025-09-28 21:39:29 +02:00
parent 6d9c4a904e
commit bbd0e4a3a1
2 changed files with 10 additions and 1 deletions

8
ft_isdigit.c Normal file
View File

@@ -0,0 +1,8 @@
#include "libft.h"
int ft_isdigit(int c)
{
if ((c >= '0' && c <= '9'))
return (1);
return (0);
}

View File

@@ -1 +1,2 @@
int ft_isalpha(const char c); int ft_isalpha(const char c);
int ft_isdigit(int c);