Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-04-16 | fix search past the end of haystack in memmem | Timo Teräs | 1 | -0/+1 | |
to optimize the search, memchr is used to find the first occurrence of the first character of the needle in the haystack before switching to a search for the full needle. however, the number of characters skipped by this first step were not subtracted from the haystack length, causing memmem to search past the end of the haystack. (cherry picked from commit 6fbdeff0e51f6afc38fbb1476a4db81322779da4) | |||||
2013-12-12 | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 1 | -1/+0 | |
2012-10-15 | add memmem function (gnu extension) | Rich Felker | 1 | -0/+148 | |
based on strstr. passes gnulib tests and a few quick checks of my own. |