#include <stdlib.h>
#include <stdio.h>

int    ft_ultimate_range(int **range, int min, int max)
{
    int    i;

    if (min >= max)
    {
        *range = NULL;
        return (0);
    }
    *range = malloc(sizeof(int) * (max - min));
    if (*range == 0)
        return (0);
    i = 0;
    while (min < max)
    {
        (*range)[i] = min;
        i++;
        min++;
    }
    return (i);
}


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: