From 62876a7025e31897e7ccb92ff8d461d3fef6ddb4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Jul 2018 18:03:14 +0200 Subject: Add fz_memmem function taken from musl libc. --- include/mupdf/fitz/string-util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/mupdf/fitz/string-util.h b/include/mupdf/fitz/string-util.h index 2bfc728f..aad11b86 100644 --- a/include/mupdf/fitz/string-util.h +++ b/include/mupdf/fitz/string-util.h @@ -61,6 +61,11 @@ size_t fz_strlcpy(char *dst, const char *src, size_t n); */ size_t fz_strlcat(char *dst, const char *src, size_t n); +/* + fz_memmem: Find the start of the first occurrence of the substring needle in haystack. +*/ +void *fz_memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen); + /* fz_dirname: extract the directory component from a path. */ -- cgit v1.2.3