sway-patched-tray-menu-github/sway/util.c
2015-08-25 15:17:18 +02:00

3 lines
62 B
C

int wrap(int i, int max) {
return ((i % max) + max) % max;
}