algorithm with no double nodes and nearly efficient enough still some optimizations to find for --big-superposition maps
25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_str_is_alpha.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2018/04/09 10:29:18 by tmaze #+# #+# */
|
|
/* Updated: 2018/04/09 10:33:32 by tmaze ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_str_is_alpha(char *str)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
while (str[i])
|
|
if (!ft_isalpha(str[i++]))
|
|
return (0);
|
|
return (1);
|
|
}
|