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