ft_isalpha.c 1.0 KB

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_isalpha.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2015/11/27 14:54:35 by bchanot #+# #+# */
  9. /* Updated: 2017/04/15 00:33:40 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. int ft_isalpha(int c)
  14. {
  15. if ((c >= 65 && c <= 90) || (c >= 97 && c <= 122))
  16. return (true);
  17. return (false);
  18. }