]> git.sur5r.net Git - openldap/blob - doc/man/man3/lber-memory.3
2cf9d3233281dadb28662141c20d5d5e61c6c1ac
[openldap] / doc / man / man3 / lber-memory.3
1 .TH LBER_MEMORY 3 "25 January 2002" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree, ber_memvfree \- LBER memory allocators
7 .SH SYNOPSIS
8 .B #include <lber.h>
9 .LP
10 .BI "void *ber_memalloc(ber_len_t " bytes ");"
11 .LP
12 .BI "void *ber_memcalloc(ber_len_t " nelems ", ber_len_t " bytes ");"
13 .LP
14 .BI "void *ber_memrealloc(void *" ptr ", ber_len_t " bytes ");"
15 .LP
16 .BI "void ber_memfree(void *" ptr ");"
17 .LP
18 .BI "void ber_memvfree(void **" vec ");"
19 .SH DESCRIPTION
20 .LP
21 These routines are used to allocate/deallocate memory used/returned
22 by the Lightweight BER library as required by
23 .BR lber-encode (3)
24 and
25 .BR lber-decode (3).
26 .BR ber_memalloc (),
27 .BR ber_memcalloc (),
28 .BR ber_memrealloc (),
29 and
30 .BR ber_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.  The
38 .BR ber_memvfree ()
39 routine is used to free a dynamically allocated array of pointers to
40 arbitrary dynamically allocated objects.
41 .SH SEE ALSO
42 .BR lber-decode (3),
43 .BR lber-encode (3),
44 .BR lber-types (3)
45 .LP
46 .SH ACKNOWLEDGEMENTS
47 .B      OpenLDAP
48 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
49 .B      OpenLDAP
50 is derived from University of Michigan LDAP 3.3 Release.