summaryrefslogtreecommitdiff
path: root/lib/bound.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bound.c')
-rw-r--r--lib/bound.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/bound.c b/lib/bound.c
deleted file mode 100644
index 072a41a..0000000
--- a/lib/bound.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <stdlib.h>
-
-unsigned int bound(unsigned int min, unsigned int value, unsigned int max)
-{
- if (value < min) {
- value = min;
- }
- if (value > max) {
- value = max;
- }
- return value;
-}