mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-01 15:14:16 +01:00
d09154465a
While all systems that I have access to support strcasestr, it is in fact not part of POSIX. So here's a fallback reimplementation based on POSIX functions. Signed-off-by: Dirk Hohndel <hohndel@infradead.org> Tested-by: Tomas Carnecky <tom@dbservice.com> (on OpenSolaris snv_134)
10 lines
152 B
C
10 lines
152 B
C
#define _GNU_SOURCE
|
|
#include <strings.h>
|
|
|
|
int main()
|
|
{
|
|
char *found;
|
|
const char *haystack, *needle;
|
|
|
|
found = strcasestr(haystack, needle);
|
|
}
|