reallocf.3 (107788) | reallocf.3 (108037) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 |
37.\" $FreeBSD: head/lib/libc/stdlib/malloc.3 107788 2002-12-12 17:26:04Z ru $ | 37.\" $FreeBSD: head/lib/libc/stdlib/malloc.3 108037 2002-12-18 12:45:11Z ru $ |
38.\" 39.Dd August 27, 1996 40.Dt MALLOC 3 41.Os 42.Sh NAME 43.Nm malloc , calloc , realloc , free , reallocf 44.Nd general purpose memory allocation functions 45.Sh LIBRARY --- 84 unchanged lines hidden (view full) --- 130the 131.Fn realloc 132function behaves identically to 133.Fn malloc 134for the specified size. 135.Pp 136The 137.Fn reallocf | 38.\" 39.Dd August 27, 1996 40.Dt MALLOC 3 41.Os 42.Sh NAME 43.Nm malloc , calloc , realloc , free , reallocf 44.Nd general purpose memory allocation functions 45.Sh LIBRARY --- 84 unchanged lines hidden (view full) --- 130the 131.Fn realloc 132function behaves identically to 133.Fn malloc 134for the specified size. 135.Pp 136The 137.Fn reallocf |
138function call is identical to the realloc function call, except that it | 138function is identical to the 139.Fn realloc 140function, except that it |
139will free the passed pointer when the requested memory cannot be allocated. 140This is a 141.Fx 142specific API designed to ease the problems with traditional coding styles 143for realloc causing memory leaks in libraries. 144.Pp 145The 146.Fn free --- 351 unchanged lines hidden --- | 141will free the passed pointer when the requested memory cannot be allocated. 142This is a 143.Fx 144specific API designed to ease the problems with traditional coding styles 145for realloc causing memory leaks in libraries. 146.Pp 147The 148.Fn free --- 351 unchanged lines hidden --- |