ft_isalnum.c 1001 B

123456789101112131415161718
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_isalnum.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/05 18:18:09 by mazimi #+# #+# */
  9. /* Updated: 2015/02/18 21:54:30 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. int ft_isalnum(int c)
  14. {
  15. return (ft_isalpha(c) == 1 || ft_isdigit(c) == 1) ? 1 : 0;
  16. }