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