diff options
author | Bruno Haible <bruno@clisp.org> | 2006-11-06 12:47:56 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:18 +0200 |
commit | e46d7f6e127b69f926c3a25952d156eb01cc39d2 (patch) | |
tree | 968d79891abbfa8669ded228304820c3932ac2d6 /gnulib-local/lib/xalloc.h | |
parent | 13fa5131b37c72af941c0f45c20fe643bee64651 (diff) | |
download | external_gettext-e46d7f6e127b69f926c3a25952d156eb01cc39d2.zip external_gettext-e46d7f6e127b69f926c3a25952d156eb01cc39d2.tar.gz external_gettext-e46d7f6e127b69f926c3a25952d156eb01cc39d2.tar.bz2 |
New function xnmalloc.
Diffstat (limited to 'gnulib-local/lib/xalloc.h')
-rw-r--r-- | gnulib-local/lib/xalloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnulib-local/lib/xalloc.h b/gnulib-local/lib/xalloc.h index a12c984..a044610 100644 --- a/gnulib-local/lib/xalloc.h +++ b/gnulib-local/lib/xalloc.h @@ -32,6 +32,10 @@ extern "C" { /* Allocate SIZE bytes of memory dynamically, with error checking. */ extern void *xmalloc (size_t size); +/* Allocate memory for NMEMB elements of SIZE bytes, with error checking. + SIZE must be > 0. */ +extern void *xnmalloc (size_t nmemb, size_t size); + /* Allocate SIZE bytes of memory dynamically, with error checking, and zero it. */ extern void *xzalloc (size_t size); |