From 15e73d76ab2a491c6bf9754e72c12246ee7d73ee Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 5 Nov 2010 10:26:33 +0100 Subject: [PATCH] docs: updated xalloc --- docs/xalloc.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/xalloc.txt b/docs/xalloc.txt index 6f66292..2823d0c 100644 --- a/docs/xalloc.txt +++ b/docs/xalloc.txt @@ -31,6 +31,11 @@ functions Allocates and copies the string 's' to a new memory location and returns it to the user. + If compiled with the `__DEBUG__` symbol, the function will not allow 's' to be a `NULL` pointer +`xmemdup()`:: + + Allocates and copies `len` bytes from `ptr` to a new memory location and returns it to the user. + + If compiled with the `__DEBUG__` symbol, the function will not allow 'ptr' to be a `NULL` pointer + `xfree()`:: Free's a previous allocated block (pointed to by 'ptr') that is allocated by xmalloc/malloc. +