ft_isalnum.c 1.0 KB

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