diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-08-12 21:01:28 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-08-12 21:01:28 +0000 |
commit | 6e35536bddb52c8e6bc201265c77a846d879b5a3 (patch) | |
tree | f00a3475d91759f1fe3d36df2757cc8f230e9234 /avahi-common/malloc.h | |
parent | 5d047523c87ba11aad8c384f7ffde25b4dd746ed (diff) |
* 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
Diffstat (limited to 'avahi-common/malloc.h')
-rw-r--r-- | avahi-common/malloc.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |