aboutsummaryrefslogtreecommitdiffstats
path: root/sway/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/util.c')
-rw-r--r--sway/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/util.c b/sway/util.c
new file mode 100644
index 00000000..25aeb9f4
--- /dev/null
+++ b/sway/util.c
@@ -0,0 +1,3 @@
1int wrap(int i, int max) {
2 return ((i % max) + max) % max;
3}