Skip to content

Commit 7feaf1e

Browse files
committed
norm
1 parent 61d5e69 commit 7feaf1e

10 files changed

+25
-24
lines changed

ft_fd/ft_putnbr_fd.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -39,6 +39,7 @@ static int lenghtfinder(int number)
3939
}
4040
return (lenght);
4141
}
42+
4243
//writes a number onto a file
4344
void ft_putnbr_fd(int n, int fd)
4445
{

ft_math/ft_array_cpy.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* ************************************************************************** */
22
/* */
33
/* ::: :::::::: */
4-
/* ft_math_entropy.c :+: :+: :+: */
4+
/* ft_array_cpy.c :+: :+: :+: */
55
/* +:+ +:+ +:+ */
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -25,4 +25,3 @@ int *array_cpy(int *srclst, int n)
2525
dstlst[n] = srclst[n];
2626
return (dstlst);
2727
}
28-

ft_math/ft_math_avrg.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* ************************************************************************** */
22
/* */
33
/* ::: :::::::: */
4-
/* ft_math_mean.c :+: :+: :+: */
4+
/* ft_math_avrg.c :+: :+: :+: */
55
/* +:+ +:+ +:+ */
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -16,5 +16,5 @@
1616

1717
void *ft_math_avrg(int *lst)
1818
{
19-
19+
(void)lst;
2020
}

ft_math/ft_math_entropy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -16,5 +16,5 @@
1616

1717
void *ft_math_entropy(int *lst)
1818
{
19-
19+
(void)lst;
2020
}

ft_math/ft_math_exp.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -23,8 +23,8 @@ int *ft_math_exp(int n, int e)
2323
{
2424
while (e-- > 0 && n != 0)
2525
result *= n;
26-
return (result);
26+
return (result);
2727
}
2828
else
29-
return (void);
29+
return (0);
3030
}

ft_math/ft_math_max.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -18,7 +18,7 @@ int *ft_math_max(int *lst)
1818
{
1919
int result;
2020

21-
if (lst);
21+
if (lst)
2222
{
2323
result = *lst;
2424
while (lst++)
@@ -29,5 +29,5 @@ int *ft_math_max(int *lst)
2929
return (result);
3030
}
3131
else
32-
return (void);
32+
return (0);
3333
}

ft_math/ft_math_mean.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -16,5 +16,5 @@
1616

1717
void *ft_math_avrg(int *lst)
1818
{
19-
19+
(void)lst;
2020
}

ft_math/ft_math_med.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -16,5 +16,5 @@
1616

1717
void *ft_math_med(int *lst)
1818
{
19-
19+
(void)lst;
2020
}

ft_math/ft_math_min.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -18,7 +18,7 @@ int *ft_math_min(int *lst)
1818
{
1919
int result;
2020

21-
if (lst);
21+
if (lst)
2222
{
2323
result = *lst;
2424
while (lst++)
@@ -29,5 +29,5 @@ int *ft_math_min(int *lst)
2929
return (result);
3030
}
3131
else
32-
return (void);
32+
return (0);
3333
}

ft_math/ft_math_root.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: llord <llord@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -16,5 +16,6 @@
1616

1717
void *ft_math_root(int n, int r)
1818
{
19-
19+
(void)n;
20+
(void)r;
2021
}

0 commit comments

Comments
 (0)