fix(char/ischar): fix the work of the function

- Didn't now why the moulinette was working
This commit is contained in:
Raphael 2025-09-04 18:54:19 +02:00
parent ad0f9d001e
commit 4c6a17811f
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 12:47:28 by rparodi #+# #+# */ /* Created: 2023/11/06 12:47:28 by rparodi #+# #+# */
/* Updated: 2025/09/01 18:31:27 by rparodi ### ########.fr */ /* Updated: 2025/09/04 18:12:52 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -21,6 +21,6 @@
int ft_isalnum(int c) int ft_isalnum(int c)
{ {
if (ft_isalpha(c) || ft_isdigit(c)) if (ft_isalpha(c) || ft_isdigit(c))
return (c); return (1);
return (0); return (0);
} }

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 11:58:37 by rparodi #+# #+# */ /* Created: 2023/11/06 11:58:37 by rparodi #+# #+# */
/* Updated: 2025/09/04 11:42:06 by rparodi ### ########.fr */ /* Updated: 2025/09/04 18:13:06 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -19,6 +19,6 @@
int ft_isalpha(int c) int ft_isalpha(int c)
{ {
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return (c); return (1);
return (0); return (0);
} }

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 12:44:28 by rparodi #+# #+# */ /* Created: 2023/11/06 12:44:28 by rparodi #+# #+# */
/* Updated: 2025/09/01 16:25:14 by rparodi ### ########.fr */ /* Updated: 2025/09/04 18:13:17 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -19,6 +19,6 @@
int ft_isdigit(int c) int ft_isdigit(int c)
{ {
if (c >= '0' && c <= '9') if (c >= '0' && c <= '9')
return (c); return (1);
return (0); return (0);
} }