1.lf 1 stdin
2.TH LDAP_MEMORY 3 "2020/04/28" "OpenLDAP 2.4.50"
3.\" $OpenLDAP$
4.\" Copyright 1998-2020 The OpenLDAP Foundation All Rights Reserved.
5.\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
6.SH NAME
7ldap_memfree, ldap_memvfree, ldap_memalloc, ldap_memcalloc, ldap_memrealloc, ldap_strdup \- LDAP memory allocation routines
8.SH LIBRARY
9OpenLDAP LDAP (libldap, \-lldap)
10.SH SYNOPSIS
11.B #include <ldap.h>
12.LP
13.BI "void ldap_memfree(void *" p ");"
14.LP
15.BI "void ldap_memvfree(void **" v ");"
16.LP
17.BI "void *ldap_memalloc(ber_len_t " s ");"
18.LP
19.BI "void *ldap_memcalloc(ber_len_t " n ", ber_len_t " s ");"
20.LP
21.BI "void *ldap_memrealloc(void *" p ", ber_len_t " s ");"
22.LP
23.BI "char *ldap_strdup(LDAP_CONST char *" p ");"
24.SH DESCRIPTION
25These routines are used to allocate/deallocate memory used/returned
26by the LDAP library.
27.BR ldap_memalloc (),
28.BR ldap_memcalloc (),
29.BR ldap_memrealloc (),
30and
31.BR ldap_memfree ()
32are used exactly like the standard
33.BR malloc (3),
34.BR calloc (3),
35.BR realloc (3),
36and
37.BR free (3)
38routines, respectively.
39The
40.BR ldap_memvfree ()
41routine is used to free a dynamically allocated array of pointers to
42arbitrary dynamically allocated objects.
43The
44.BR ldap_strdup ()
45routine is used exactly like the standard
46.BR strdup (3)
47routine.
48.SH SEE ALSO
49.BR ldap (3)
50.SH ACKNOWLEDGEMENTS
51.lf 1 ./../Project
52.\" Shared Project Acknowledgement Text
53.B "OpenLDAP Software"
54is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
55.B "OpenLDAP Software"
56is derived from the University of Michigan LDAP 3.3 Release.  
57.lf 51 stdin
58