mirror of
https://github.com/Ladebeze66/libft.git
synced 2025-12-13 04:36:55 +01:00
22 lines
997 B
C
Executable File
22 lines
997 B
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isdigit.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/02/01 14:46:59 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/02/01 15:55:00 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isdigit(int c)
|
|
{
|
|
if (c >= 48 && c <= 57)
|
|
return (1);
|
|
else
|
|
return (0);
|
|
}
|