about summary refs log tree commit diff
path: root/src/string/memmem.c
Commit message (Collapse)AuthorAgeFilesLines
* fix false negatives with periodic needles in strstr, wcsstr, and memmemRich Felker2014-04-181-1/+1
| | | | | | | | in cases where the memorized match range from the right factor exceeded the length of the left factor, it was wrongly treated as a mismatch rather than a match. issue reported by Yves Bastide.
* fix search past the end of haystack in memmemTimo Teräs2014-04-091-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.
* include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy2013-12-121-1/+0
|
* add memmem function (gnu extension)Rich Felker2012-10-151-0/+148
based on strstr. passes gnulib tests and a few quick checks of my own.