summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-07-06 18:03:14 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-08-10 12:09:10 +0200
commit62876a7025e31897e7ccb92ff8d461d3fef6ddb4 (patch)
tree502ba3c3b2d64b811ffa04c0db7a254c63ca7876 /include
parent1ca107c61fd4873d2d37c32b1522b51587d4dbd0 (diff)
downloadmupdf-62876a7025e31897e7ccb92ff8d461d3fef6ddb4.tar.xz
Add fz_memmem function taken from musl libc.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/string-util.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -62,6 +62,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.
*/
void fz_dirname(char *dir, const char *path, size_t dirsize);