aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-25 15:17:18 +0200
committerminus <minus@mnus.de>2015-08-25 15:17:18 +0200
commit1efda79bf2f72a416806de3159e1c2936c5fdbe9 (patch)
tree836048691c78219dc0656d7a4a51128a27c70a02 /include/util.h
parent2e755cf13fb653a397a8895121184322dc1dcdd6 (diff)
refactored workspace_next/prev
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
new file mode 100644
index 00000000..5d42b780
--- /dev/null
+++ b/include/util.h
@@ -0,0 +1,4 @@
+/**
+ * Wrap i into the range [0, max[
+ */
+int wrap(int i, int max);