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

NAME

6       ber_memalloc,  ber_memcalloc, ber_memrealloc, ber_memfree, ber_memvfree
7       - OpenLDAP LBER memory allocators
8

LIBRARY

10       OpenLDAP LBER (liblber, -llber)
11

SYNOPSIS

13       #include <lber.h>
14
15       void *ber_memalloc(ber_len_t bytes);
16
17       void *ber_memcalloc(ber_len_t nelems, ber_len_t bytes);
18
19       void *ber_memrealloc(void *ptr, ber_len_t bytes);
20
21       void ber_memfree(void *ptr);
22
23       void ber_memvfree(void **vec);
24

DESCRIPTION

26       These routines are used to allocate/deallocate memory used/returned  by
27       the  Lightweight BER library as required by lber-encode(3) and lber-de‐
28       code(3).   ber_memalloc(),   ber_memcalloc(),   ber_memrealloc(),   and
29       ber_memfree()  are used exactly like the standard malloc(3), calloc(3),
30       realloc(3), and free(3)  routines,  respectively.   The  ber_memvfree()
31       routine  is  used  to free a dynamically allocated array of pointers to
32       arbitrary dynamically allocated objects.
33

SEE ALSO

35       lber-decode(3), lber-encode(3), lber-types(3)
36

ACKNOWLEDGEMENTS

38       OpenLDAP Software is developed and maintained by The  OpenLDAP  Project
39       <http://www.openldap.org/>.  OpenLDAP Software is derived from the Uni‐
40       versity of Michigan LDAP 3.3 Release.
41
42
43
44OpenLDAP 2.6.3                    2022/07/14                    LBER_MEMORY(3)
Impressum