commit
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int *ft_range(int min, int max)
|
||||
{
|
||||
@@ -20,10 +19,10 @@ int *ft_range(int min, int max)
|
||||
int i;
|
||||
|
||||
if (min < max)
|
||||
size = max - min;
|
||||
size = (max - min) + 1;
|
||||
else
|
||||
return (NULL);
|
||||
range = (int *) malloc(size * sizeof(char));
|
||||
range = (int *) malloc(size * sizeof(int));
|
||||
i = 0;
|
||||
while (i < size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user