From ed04dd7fb0c859870e708da809b002508f959b1c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 31 Mar 2026 04:10:12 -0400 Subject: Replace strcmp() and friends, tolower(), with custom (small) routines. now at 5129 bytes free. --- src/irc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/irc.c') diff --git a/src/irc.c b/src/irc.c index b4d9f43..0ca0b01 100644 --- a/src/irc.c +++ b/src/irc.c @@ -16,6 +16,7 @@ #include "complete.h" #include "keytab.h" #include "kgetc.h" +#include "streq.h" #ifndef VERSION #define VERSION "?????" @@ -514,7 +515,7 @@ static void invalid_msg(char type) { } #endif -static char cmd_is(const char *cmd) { +static char cmd_is(char *cmd) { return streq_i(msg_cmd, cmd); } @@ -947,7 +948,7 @@ void start_keystroke(char c) { return; } - switch(tolower(c)) { + switch(lcase(c)) { case XCH_UP: case '-': scrollback(); -- cgit v1.2.3