aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-02-23 03:49:41 +0000
committerBen Elliston <bje@au.ibm.com>2005-02-23 03:49:41 +0000
commitc3e8c140a39edfc1a8e94991c2bcc1afb33202e0 (patch)
treedc019d239a45def1c1c2e31798906974921ecd85 /bfd/opncls.c
parentee3c981485dea8e34e473f6bfaf1b1e8ed25f709 (diff)
downloadgdb-c3e8c140a39edfc1a8e94991c2bcc1afb33202e0.zip
gdb-c3e8c140a39edfc1a8e94991c2bcc1afb33202e0.tar.gz
gdb-c3e8c140a39edfc1a8e94991c2bcc1afb33202e0.tar.bz2
* opncls.c (bfd_zalloc): Document this function.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index ffbf65d..091c316 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -820,7 +820,6 @@ DESCRIPTION
<<abfd>> and return a pointer to it.
*/
-
void *
bfd_alloc (bfd *abfd, bfd_size_type size)
{
@@ -838,6 +837,18 @@ bfd_alloc (bfd *abfd, bfd_size_type size)
return ret;
}
+/*
+INTERNAL_FUNCTION
+ bfd_zalloc
+
+SYNOPSIS
+ void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
+
+DESCRIPTION
+ Allocate a block of @var{wanted} bytes of zeroed memory
+ attached to <<abfd>> and return a pointer to it.
+*/
+
void *
bfd_zalloc (bfd *abfd, bfd_size_type size)
{