aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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);