/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ultimate_range.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet int ft_ultimate_range(int **range, int min, int max) { int i; *range = NULL; if (max <= min) return (0); *range = malloc(sizeof(*range) * (max - min)); i = 0; while (min + i < max) { (*range)[i] = min + i; i++; } return (max - min); }