aboutsummaryrefslogtreecommitdiffstats
path: root/memcasemem.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-22 18:06:37 +0100
committerMattias Andrée <m@maandree.se>2025-12-22 18:06:37 +0100
commitaffdb0475741cae1e0a1186541f7f7dbd5479ca8 (patch)
tree04a7bf0795eb24237c3c9c52eb51a111f1341b0c /memcasemem.c
parentm (diff)
downloadlibsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.gz
libsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.bz2
libsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.xz
Add TODOs
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'memcasemem.c')
-rw-r--r--memcasemem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcasemem.c b/memcasemem.c
index b3ea476..6be8adc 100644
--- a/memcasemem.c
+++ b/memcasemem.c
@@ -17,6 +17,7 @@ libsimple_memcasemem(const void *hay_, size_t hayn, const void *sub_, size_t sub
if (subn == 1)
return libsimple_memcasechr(hay, *sub, hayn);
+ /* TODO optimise */
for (end = &hay[hayn - subn + 1]; hay != end; hay++)
if (tolower(*hay) == tolower(*sub) && !libsimple_memcasecmp(hay, sub, subn))
return REMOVE_CONST(hay, char *);