1 .TH LDAP_MEMORY 3 "2008/07/16" "OpenLDAP 2.4.11"
2 .\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_memory.3,v 1.1.2.3 2008/02/11 23:26:39 kurt Exp $
3 .\" Copyright 1998-2008 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_memfree, ldap_memvfree, ldap_memalloc, ldap_memcalloc, ldap_memrealloc, ldap_strdup \- LDAP memory allocation routines
8 OpenLDAP LDAP (libldap, -lldap)
12 .BI "void ldap_memfree(void *" p ");"
14 .BI "void ldap_memvfree(void **" v ");"
16 .BI "void *ldap_memalloc(ber_len_t " s ");"
18 .BI "void *ldap_memcalloc(ber_len_t " n ", ber_len_t " s ");"
20 .BI "void *ldap_memrealloc(void *" p ", ber_len_t " s ");"
22 .BI "char *ldap_strdup(LDAP_CONST char *" p ");"
24 These routines are used to allocate/deallocate memory used/returned
27 .BR ldap_memcalloc (),
28 .BR ldap_memrealloc (),
31 are used exactly like the standard
37 routines, respectively.
40 routine is used to free a dynamically allocated array of pointers to
41 arbitrary dynamically allocated objects.
44 routine is used exactly like the standard
50 .\" Shared Project Acknowledgement Text
51 .B "OpenLDAP Software"
52 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
53 .B "OpenLDAP Software"
54 is derived from University of Michigan LDAP 3.3 Release.