101 *len = (uint32_t) ((abs(max - min) + 1 + (step / 2)) / step);
102 *range =
rtalloc(
sizeof(
int) * *len);
105 for (i = min, j = 0; i <= max; i += step, j++)
108 else if (max < min) {
109 if (step > 0) step *= -1;
110 for (i = min, j = 0; i >= max; i += step, j++)
113 else if (min == max) {
void * rtalloc(size_t size)
Wrappers used for managing memory.