22 lines
997 B
C
22 lines
997 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isascii.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2020/11/29 00:10:30 by apommier #+# #+# */
|
|
/* Updated: 2020/11/29 17:04:48 by apommier ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_isascii(int c)
|
|
{
|
|
if (c >= 0 && c <= 127)
|
|
return (c);
|
|
else
|
|
return (0);
|
|
}
|