From 7722938d63d206ebc0e1da732009e1e9f2cd9d72 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 4 Jun 2000 18:34:39 +0000 Subject: Added library progdocs. --- lib/xmalloc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/xmalloc.c') diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 2bec260..369d420 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -1,7 +1,7 @@ /* * BIRD Library -- malloc() With Checking * - * (c) 1998--1999 Martin Mares + * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -13,6 +13,16 @@ #ifndef HAVE_LIBDMALLOC +/** + * xmalloc - malloc with checking + * @size: block size + * + * This function is equivalent to malloc() except that in case of + * failure it calls die() to quit the program instead of returning + * a %NULL pointer. + * + * Whereever possible, please use the memory resources instead. + */ void * xmalloc(unsigned size) { -- cgit v1.2.3