Advertisement
Vitamin4eg

Untitled

Oct 22nd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int ft_str_is_alpha(char *str)
  2. {
  3. unsigned int i;
  4.  
  5. i = 0;
  6. while (str[i] != '\0')
  7. {
  8. if (str[i] < 'A' || (str[i] > 'Z' && str[i] < 'a') || str[i] > 'z')
  9. return (0);
  10. ++i;
  11. }
  12. return (1);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement