fix(char): fixing the isascii / isprint

- Correcting the behavour of is ascii to the original given by the
original function
This commit is contained in:
Raphael 2025-09-05 10:47:02 +02:00
parent 4c6a17811f
commit 7051eaf1bf
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 14:04:26 by rparodi #+# #+# */
/* Updated: 2025/09/04 11:41:42 by rparodi ### ########.fr */
/* Updated: 2025/09/05 10:40:03 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,6 +21,6 @@ int ft_isascii(int c)
if (c == 0)
return (1);
if (c > 0 && c <= 127)
return (c);
return (1);
return (0);
}