]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mempool-str.c
Try to merge recent changes in v3.9 to image branch...
[libucw.git] / lib / mempool-str.c
index 360a3b950362e7f2e83f90a23875363f89fe55ea..96bc07dadfeb91ea05a56dc7bf04e6b146b89fa9 100644 (file)
@@ -22,6 +22,14 @@ mp_strdup(struct mempool *p, char *s)
   return t;
 }
 
+void *
+mp_memdup(struct mempool *p, void *s, uns len)
+{
+  void *t = mp_alloc_fast(p, len);
+  memcpy(t, s, len);
+  return t;
+}
+
 char *
 mp_multicat(struct mempool *p, ...)
 {