File tree 10 files changed +25
-24
lines changed
10 files changed +25
-24
lines changed Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/01/24 15:05:48 by llord #+# #+# */
9
- /* Updated: 2023/03/30 11:47:42 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:05:36 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -39,6 +39,7 @@ static int lenghtfinder(int number)
39
39
}
40
40
return (lenght );
41
41
}
42
+
42
43
//writes a number onto a file
43
44
void ft_putnbr_fd (int n , int fd )
44
45
{
Original file line number Diff line number Diff line change 1
1
/* ************************************************************************** */
2
2
/* */
3
3
/* ::: :::::::: */
4
- /* ft_math_entropy.c :+: :+: :+: */
4
+ /* ft_array_cpy.c :+: :+: :+: */
5
5
/* +:+ +:+ +:+ */
6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:38:28 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:05:56 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -25,4 +25,3 @@ int *array_cpy(int *srclst, int n)
25
25
dstlst [n ] = srclst [n ];
26
26
return (dstlst );
27
27
}
28
-
Original file line number Diff line number Diff line change 1
1
/* ************************************************************************** */
2
2
/* */
3
3
/* ::: :::::::: */
4
- /* ft_math_mean .c :+: :+: :+: */
4
+ /* ft_math_avrg .c :+: :+: :+: */
5
5
/* +:+ +:+ +:+ */
6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:37:37 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:06 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
16
16
17
17
void * ft_math_avrg (int * lst )
18
18
{
19
-
19
+ ( void ) lst ;
20
20
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:38:28 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:14 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
16
16
17
17
void * ft_math_entropy (int * lst )
18
18
{
19
-
19
+ ( void ) lst ;
20
20
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 15:22:52 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:28 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -23,8 +23,8 @@ int *ft_math_exp(int n, int e)
23
23
{
24
24
while (e -- > 0 && n != 0 )
25
25
result *= n ;
26
- return (result );
26
+ return (result );
27
27
}
28
28
else
29
- return (void ) ;
29
+ return (0 );
30
30
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 15:31:17 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:44 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -18,7 +18,7 @@ int *ft_math_max(int *lst)
18
18
{
19
19
int result ;
20
20
21
- if (lst );
21
+ if (lst )
22
22
{
23
23
result = * lst ;
24
24
while (lst ++ )
@@ -29,5 +29,5 @@ int *ft_math_max(int *lst)
29
29
return (result );
30
30
}
31
31
else
32
- return (void );
32
+ return (0 );
33
33
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:37:46 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:50 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
16
16
17
17
void * ft_math_avrg (int * lst )
18
18
{
19
-
19
+ ( void ) lst ;
20
20
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:37:00 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:52 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
16
16
17
17
void * ft_math_med (int * lst )
18
18
{
19
-
19
+ ( void ) lst ;
20
20
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 15:31:41 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:06:58 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -18,7 +18,7 @@ int *ft_math_min(int *lst)
18
18
{
19
19
int result ;
20
20
21
- if (lst );
21
+ if (lst )
22
22
{
23
23
result = * lst ;
24
24
while (lst ++ )
@@ -29,5 +29,5 @@ int *ft_math_min(int *lst)
29
29
return (result );
30
30
}
31
31
else
32
- return (void );
32
+ return (0 );
33
33
}
Original file line number Diff line number Diff line change 6
6
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/07/11 13:33:14 by llord #+# #+# */
9
- /* Updated: 2022/07/11 13:34:48 by llord ### ########.fr */
9
+ /* Updated: 2023/06/13 14:07:10 by llord ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
16
16
17
17
void * ft_math_root (int n , int r )
18
18
{
19
-
19
+ (void )n ;
20
+ (void )r ;
20
21
}
You can’t perform that action at this time.
0 commit comments