]> git.sur5r.net Git - openldap/blob - doc/man/man3/ldap_memory.3
5bd8f12d9fd30d7ddc530fcda87c23e802149ba1
[openldap] / doc / man / man3 / ldap_memory.3
1 .TH LDAP_MEMORY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2017 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 ldap_memfree, ldap_memvfree, ldap_memalloc, ldap_memcalloc, ldap_memrealloc, ldap_strdup \- LDAP memory allocation routines
7 .SH LIBRARY
8 OpenLDAP LDAP (libldap, \-lldap)
9 .SH SYNOPSIS
10 .B #include <ldap.h>
11 .LP
12 .BI "void ldap_memfree(void *" p ");"
13 .LP
14 .BI "void ldap_memvfree(void **" v ");"
15 .LP
16 .BI "void *ldap_memalloc(ber_len_t " s ");"
17 .LP
18 .BI "void *ldap_memcalloc(ber_len_t " n ", ber_len_t " s ");"
19 .LP
20 .BI "void *ldap_memrealloc(void *" p ", ber_len_t " s ");"
21 .LP
22 .BI "char *ldap_strdup(LDAP_CONST char *" p ");"
23 .SH DESCRIPTION
24 These routines are used to allocate/deallocate memory used/returned
25 by the LDAP library.
26 .BR ldap_memalloc (),
27 .BR ldap_memcalloc (),
28 .BR ldap_memrealloc (),
29 and
30 .BR ldap_memfree ()
31 are used exactly like the standard
32 .BR malloc (3),
33 .BR calloc (3),
34 .BR realloc (3),
35 and
36 .BR free (3)
37 routines, respectively.
38 The
39 .BR ldap_memvfree ()
40 routine is used to free a dynamically allocated array of pointers to
41 arbitrary dynamically allocated objects.
42 The
43 .BR ldap_strdup ()
44 routine is used exactly like the standard
45 .BR strdup (3)
46 routine.
47 .SH SEE ALSO
48 .BR ldap (3)
49 .SH ACKNOWLEDGEMENTS
50 .so ../Project