sway/sway/util.c

6 lines
81 B
C

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