aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_isascii.c
blob: 6c7c3e6134308fd0220e1d4515d7ba44bf687eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_isascii.c                                       :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: joelecle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/14 17:06:39 by joelecle          #+#    #+#             */
/*   Updated: 2020/02/14 17:06:39 by joelecle         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

int
	ft_isascii(int c)
{
	if (c >= 0 && c <= 127)
		return (1);
	return (0);
}