Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cff0d52035 | ||
|
|
1b7d6215f0 | ||
|
|
26f120d296 |
+3
-3
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/12 09:38:54 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/12 11:26:41 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/17 11:36:19 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -24,8 +24,8 @@ void ft_foreach(int *tab, int length, void (*f)(int))
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
/*void ft_putnbr(int nb)
|
||||
/*
|
||||
void ft_putnbr(int nb)
|
||||
{
|
||||
char value;
|
||||
|
||||
|
||||
+3
-3
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/12 09:41:12 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/12 11:28:20 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/17 11:36:53 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -31,8 +31,8 @@ int *ft_map(int *tab, int length, int (*f)(int))
|
||||
}
|
||||
return (tab2);
|
||||
}
|
||||
|
||||
/*void ft_putnbr(int nb)
|
||||
/*
|
||||
void ft_putnbr(int nb)
|
||||
{
|
||||
char value;
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/12 11:29:41 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/12 11:50:58 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/17 11:37:55 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
+2
-3
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/12 11:54:32 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/16 13:26:14 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/19 11:56:49 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -23,7 +23,6 @@ int ft_count_if(char **tab, int length, int (*f)(char*))
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
while (i < length)
|
||||
{
|
||||
if (f(tab[i]) != 0)
|
||||
@@ -74,7 +73,7 @@ void ft_putnbr(int nb)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
char *tab[] = {"Test", "1234", "Test56", "singesavant", "aa", "a", "aaa", NULL};
|
||||
char *tab[] = {"Test", "1234", "Test56", "singesavant", NULL};
|
||||
int result;
|
||||
int length = 0;
|
||||
|
||||
|
||||
+3
-2
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/13 14:01:47 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/16 14:00:35 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/17 11:39:02 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -40,7 +40,8 @@ int ft_is_sort(int *tab, int length, int (*f)(int, int))
|
||||
return (cs || ds);
|
||||
}
|
||||
|
||||
/*void ft_putnbr(int nb)
|
||||
/*
|
||||
void ft_putnbr(int nb)
|
||||
{
|
||||
char value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user