/ miniRT / practice / miniRT_practice / ft_isdigit.c
ft_isdigit.c
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   ft_isdigit.c                                       :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: salee2 <salee2n@student.42seoul.k>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2022/07/04 15:47:50 by salee2            #+#    #+#             */
 9  /*   Updated: 2022/07/04 15:48:04 by salee2           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #include "include/minirt.h"
14  
15  int	ft_isdigit(int c)
16  {
17  	if ('0' <= c && c <= '9')
18  		return (1);
19  	return (0);
20  }