ft_isalpha.c 1018 B

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: 2015/12/04 01:43:06 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 (1);
  17. return (0);
  18. }