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 c7e373d..325bd3e 100644
--- a/util.c
+++ b/util.c
@@ -141,3 +141,9 @@ statename(int state)
return nil;
return statenametab[state];
}
+
+int
+max(int a, int b)
+{
+ return a > b? a: b;
+}