diff options
Diffstat (limited to 'memmem.c')
| -rw-r--r-- | memmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -17,6 +17,7 @@ libsimple_memmem(const void *hay_, size_t hayn, const void *sub_, size_t subn) if (subn == 1) return memchr(hay, *sub, hayn); + /* TODO segment search if pattern is too large */ next = alloca((subn + 1U) * sizeof(*next)); i = 0, j = SIZE_MAX; goto beginning; |
