24 lines
1.0 KiB
C
24 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_hasdigit.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/02/25 16:16:40 by tmaze #+# #+# */
|
|
/* Updated: 2019/02/28 16:18:26 by tmaze ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_hasdigit(char *s)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
while (s[i] && !ft_isdigit(s[i]))
|
|
i++;
|
|
return (ft_isdigit(s[i]));
|
|
}
|