From 497acdd8860d629ba24ed9976fd47eeb743b74ab Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 21 Sep 2023 16:49:11 +0000 Subject: add parsecmd to the server. modified it to allow for commands with the same name but different nargs. now each match list entry is preceded by an 'm', to simplify its processing. note that this breaks the client. the next commit will fix that. --- util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.c') 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; +} -- cgit v1.2.3