summaryrefslogtreecommitdiffstats
path: root/lib/xmalloc.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-04 20:34:39 +0200
committerMartin Mares <mj@ucw.cz>2000-06-04 20:34:39 +0200
commit7722938d63d206ebc0e1da732009e1e9f2cd9d72 (patch)
tree41073dbf2866687d85476982ffa1c0288a878da0 /lib/xmalloc.c
parent102e3e0e0277e7b123c7c1ae3635c4a8fb55c900 (diff)
downloadbird-7722938d63d206ebc0e1da732009e1e9f2cd9d72.tar
bird-7722938d63d206ebc0e1da732009e1e9f2cd9d72.zip
Added library progdocs.
Diffstat (limited to 'lib/xmalloc.c')
-rw-r--r--lib/xmalloc.c12
1 files changed, 11 insertions, 1 deletions
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 <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* 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)
{