diff options
author | Martin Mares <mj@ucw.cz> | 2000-06-04 18:34:39 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-06-04 18:34:39 +0000 |
commit | 7722938d63d206ebc0e1da732009e1e9f2cd9d72 (patch) | |
tree | 41073dbf2866687d85476982ffa1c0288a878da0 /lib/xmalloc.c | |
parent | 102e3e0e0277e7b123c7c1ae3635c4a8fb55c900 (diff) |
Added library progdocs.
Diffstat (limited to 'lib/xmalloc.c')
-rw-r--r-- | lib/xmalloc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 2bec260c..369d4201 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) { |