summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-06-02 20:18:05 +0200
committerTor Andersson <tor@ghostscript.com>2005-06-02 20:18:05 +0200
commit4c908e062fe8ee0dcec616537e4f93ac606d2c47 (patch)
tree08b5851601b3649e98760f6bd4be99dcb4ed2ff7 /fitz
parent6eb3bfd3337f6d20fcd7643ce1c23cda241cf31c (diff)
downloadmupdf-4c908e062fe8ee0dcec616537e4f93ac606d2c47.tar.xz
metro package relationships
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_memory.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fitz/base_memory.c b/fitz/base_memory.c
index 2c2f8e0d..48988dbc 100644
--- a/fitz/base_memory.c
+++ b/fitz/base_memory.c
@@ -79,3 +79,13 @@ fz_free(void *p)
mem->free(mem, p);
}
+char *
+fz_strdup(char *s)
+{
+ int len = strlen(s);
+ char *ns = fz_malloc(len + 1);
+ if (ns)
+ strcpy(ns, s);
+ return ns;
+}
+