aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/ft_isascii.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/ft_isascii.c')
-rw-r--r--src/ctype/ft_isascii.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ctype/ft_isascii.c b/src/ctype/ft_isascii.c
index 51dcd1c..376ee54 100644
--- a/src/ctype/ft_isascii.c
+++ b/src/ctype/ft_isascii.c
@@ -6,13 +6,11 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 09:54:30 by cacharle #+# #+# */
-/* Updated: 2019/10/20 13:03:23 by cacharle ### ########.fr */
+/* Updated: 2020/02/10 02:14:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-#define MAX_CHAR ((1 << 7) - 1)
-
int ft_isascii(int c)
{
- return (c >= 0 && c <= MAX_CHAR);
+ return (c >= 0 && c <= 255);
}