aboutsummaryrefslogtreecommitdiffstats
path: root/memcasemem.c
diff options
context:
space:
mode:
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 *);