ft_isdigit.c 991 B

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_isdigit.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2015/11/25 12:39:16 by bchanot #+# #+# */
  9. /* Updated: 2015/12/04 01:42:49 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. int ft_isdigit(int c)
  14. {
  15. if (c >= 48 && c <= 57)
  16. return (1);
  17. return (0);
  18. }