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/complete.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/complete.c') diff --git a/src/complete.c b/src/complete.c index 108bc90..1af6930 100644 --- a/src/complete.c +++ b/src/complete.c @@ -5,6 +5,7 @@ #include "edbox.h" #include "screen.h" #include "irc.h" +#include "streq.h" #define COMP_S1 1 #define COMP_PM 2 @@ -27,7 +28,7 @@ static void add_list(const char *n) { int i; for(i = 0; i < 25; i++) - if(strncmp(n, add_to[i], 24) == 0) + if(strneq_i(n, add_to[i], 24)) return; /* we already got this one */ strncpy(add_to[pm_nick_pos], n, 24); @@ -55,7 +56,7 @@ char match(const char *p, const char *q) { if(!len) return 0; while(len--) { - if(tolower(*p) != tolower(*q)) + if(lcase(*p) != lcase(*q)) return 0; p++, q++; } -- cgit v1.2.3