mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 04:34:14 +00:00
feat: add ft_isdigit function and header
This commit is contained in:
8
ft_isdigit.c
Normal file
8
ft_isdigit.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "libft.h"
|
||||
|
||||
int ft_isdigit(int c)
|
||||
{
|
||||
if ((c >= '0' && c <= '9'))
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user