aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.c b/util.c
index 325bd3e..cdd1d52 100644
--- a/util.c
+++ b/util.c
@@ -147,3 +147,9 @@ max(int a, int b)
{
return a > b? a: b;
}
+
+int
+min(int a, int b)
+{
+ return a < b? a: b;
+}