From 6e35536bddb52c8e6bc201265c77a846d879b5a3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Aug 2005 21:01:28 +0000 Subject: * implement hashmap * de-glib-ify rr.[ch], rrlist.[ch] git-svn-id: file:///home/lennart/svn/public/avahi/trunk@306 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/malloc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'avahi-common/malloc.h') diff --git a/avahi-common/malloc.h b/avahi-common/malloc.h index 2dd740e..b658357 100644 --- a/avahi-common/malloc.h +++ b/avahi-common/malloc.h @@ -53,7 +53,10 @@ void *avahi_realloc(void *p, size_t size); char *avahi_strdup(const char *s); /** Just like libc's strndup() */ -char *avahi_strndup(const char *s, size_t l); +char *avahi_strndup(const char *s, size_t l); + +/** Duplicate the given memory block into a new one allocated with avahi_malloc() */ +void *avahi_memdup(const void *s, size_t l); /** Wraps allocator functions */ typedef struct AvahiAllocator AvahiAllocator; -- cgit