1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-15 15:41:59 +01:00
sway-patched-tray-menu/sway/util.c
2015-08-25 19:53:59 +02:00

5 lines
81 B
C

#include "util.h"
int wrap(int i, int max) {
return ((i % max) + max) % max;
}