diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-22 18:06:37 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-22 18:06:37 +0100 |
| commit | affdb0475741cae1e0a1186541f7f7dbd5479ca8 (patch) | |
| tree | 04a7bf0795eb24237c3c9c52eb51a111f1341b0c | |
| parent | m (diff) | |
| download | libsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.gz libsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.bz2 libsimple-affdb0475741cae1e0a1186541f7f7dbd5479ca8.tar.xz | |
Add TODOs
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rw-r--r-- | memcasemem.c | 1 | ||||
| -rw-r--r-- | memmem.c | 1 |
2 files changed, 2 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 *); @@ -16,6 +16,7 @@ libsimple_memmem(const void *hay_, size_t hayn, const void *sub_, size_t subn) if (subn == 1) return memchr(hay, *sub, hayn); + /* TODO optimise */ for (end = &hay[hayn - subn + 1]; hay != end; hay++) if (*hay == *sub && !memcmp(hay, sub, subn)) return REMOVE_CONST(hay, char *); |
