summaryrefslogtreecommitdiffstats
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
new file mode 100644
index 00000000..8e65e6d6
--- /dev/null
+++ b/include/util.h
@@ -0,0 +1,9 @@
1#ifndef _SWAY_UTIL_H
2#define _SWAY_UTIL_H
3
4/**
5 * Wrap i into the range [0, max[
6 */
7int wrap(int i, int max);
8
9#endif