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