From 7d34f45ed61e966c22fe4c9485435d6bec3fba03 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 20 Oct 2008 11:14:56 +0200 Subject: [PATCH] util: document xmemdup() Signed-off-by: Julien Danjou --- common/util.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/util.h b/common/util.h index 2c3454894..a90cbb4e8 100644 --- a/common/util.h +++ b/common/util.h @@ -148,6 +148,11 @@ xrealloc(void **ptr, ssize_t newsize) } } +/** Duplicate a memory zone. + * \param src The source. + * \param size The source size. + * \return The memory address of the copy. + */ static inline void *xmemdup(const void *src, ssize_t size) { return memcpy(xmalloc(size), src, size);