sway-patched-tray-menu-github/sway/util.c

6 lines
81 B
C
Raw Normal View History

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