21 lines
1019 B
C
21 lines
1019 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isnumeric.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: ntrahy <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/01/09 18:25:11 by ntrahy #+# #+# */
|
|
/* Updated: 2017/01/09 18:25:39 by ntrahy ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isnumeric(int c)
|
|
{
|
|
if (c == '+' || c == '-' || c == '.')
|
|
return (1);
|
|
return (ft_isdigit(c));
|
|
}
|