swayfx/sway/util.c

6 lines
81 B
C
Raw Normal View History

2015-08-26 03:53:59 +10:00
#include "util.h"
2015-08-25 23:17:18 +10:00
int wrap(int i, int max) {
return ((i % max) + max) % max;
}