blob: fa22cf75b9efc03ce5c9f207f9d26e3da3d03a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "calc_data.h"
int
next_calc(int i)
{
if (i == CALC_COUNT - 1)
return 0;
else
return i+1;
}
int
loop_backwards(int i)
{
if (i == 0)
return CALC_COUNT-1;
else
return i-1;
}
|