ft_isdigit.c 982 B

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