-.TH LBER_MEMORY 3 "12 July 2000" "OpenLDAP LDVERSION"
+.TH LBER_MEMORY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
-.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2011 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
-ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree \- LBER memory allocators
+ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree, ber_memvfree \- OpenLDAP LBER memory allocators
+.SH LIBRARY
+OpenLDAP LBER (liblber, \-llber)
.SH SYNOPSIS
-.nf
-.ft B
-#include <lber.h>
-.ft
-.fi
+.B #include <lber.h>
.LP
-.nf
-.ft B
-void * ber_memalloc(
- ber_len_t bytes )
-.ft
-.fi
+.BI "void *ber_memalloc(ber_len_t " bytes ");"
.LP
-.nf
-.ft B
-void * ber_memcalloc(
- ber_len_t nelems, ber_len_t bytes )
-.ft
-.fi
+.BI "void *ber_memcalloc(ber_len_t " nelems ", ber_len_t " bytes ");"
.LP
-.nf
-.ft B
-void * ber_memrealloc(
- void \(**ptr,
- ber_len_t bytes);
-.ft
-.fi
+.BI "void *ber_memrealloc(void *" ptr ", ber_len_t " bytes ");"
.LP
-.nf
-.ft B
-void * ber_memfree(
- void \(**ptr );
-.ft
-.fi
+.BI "void ber_memfree(void *" ptr ");"
+.LP
+.BI "void ber_memvfree(void **" vec ");"
.SH DESCRIPTION
.LP
These routines are used to allocate/deallocate memory used/returned
.BR lber-encode (3)
and
.BR lber-decode (3).
+.BR ber_memalloc (),
+.BR ber_memcalloc (),
+.BR ber_memrealloc (),
+and
+.BR ber_memfree ()
+are used exactly like the standard
+.BR malloc (3),
+.BR calloc (3),
+.BR realloc (3),
+and
+.BR free (3)
+routines, respectively. The
+.BR ber_memvfree ()
+routine is used to free a dynamically allocated array of pointers to
+arbitrary dynamically allocated objects.
.SH SEE ALSO
-.BR lber-decode (3)
-.BR lber-encode (3)
+.BR lber-decode (3),
+.BR lber-encode (3),
.BR lber-types (3)
.LP
-.SH AUTHOR
-The OpenLDAP Project <http://www.openldap.org/>
.SH ACKNOWLEDGEMENTS
-.B OpenLDAP
-is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
-.B OpenLDAP
-is derived from University of Michigan LDAP 3.3 Release.
+.so ../Project