1LDAP_MEMORY(3)             Library Functions Manual             LDAP_MEMORY(3)
2
3
4

NAME

6       ldap_memfree, ldap_memvfree, ldap_memalloc, ldap_memcalloc, ldap_memre‐
7       alloc, ldap_strdup - LDAP memory allocation routines
8

LIBRARY

10       OpenLDAP LDAP (libldap, -lldap)
11

SYNOPSIS

13       #include <ldap.h>
14
15       void ldap_memfree(void *p);
16
17       void ldap_memvfree(void **v);
18
19       void *ldap_memalloc(ber_len_t s);
20
21       void *ldap_memcalloc(ber_len_t n, ber_len_t s);
22
23       void *ldap_memrealloc(void *p, ber_len_t s);
24
25       char *ldap_strdup(LDAP_CONST char *p);
26

DESCRIPTION

28       These routines are used to allocate/deallocate memory used/returned  by
29       the  LDAP  library.   ldap_memalloc(),  ldap_memcalloc(), ldap_memreal‐
30       loc(), and ldap_memfree() are used exactly like the standard malloc(3),
31       calloc(3),   realloc(3),   and  free(3)  routines,  respectively.   The
32       ldap_memvfree() routine is used to free a dynamically  allocated  array
33       of   pointers   to   arbitrary   dynamically  allocated  objects.   The
34       ldap_strdup() routine is used exactly like the standard strdup(3)  rou‐
35       tine.
36

SEE ALSO

38       ldap(3)
39

ACKNOWLEDGEMENTS

41       OpenLDAP  Software  is developed and maintained by The OpenLDAP Project
42       <http://www.openldap.org/>.  OpenLDAP Software is derived from the Uni‐
43       versity of Michigan LDAP 3.3 Release.
44
45
46
47OpenLDAP 2.6.2                    2022/05/04                    LDAP_MEMORY(3)
Impressum