index
:
battleship
front
Multi-user on-line Sink the Fleet
rgl
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
util.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'util.c')
-rw-r--r--
util.c
6
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;
+}