*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: reallocf | Section: 3 | Source: FreeBSD | File: reallocf.3.gz
MALLOC(3) FreeBSD Library Functions Manual MALLOC(3) NAME reallocf - memory reallocation function LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <stdlib.h> void * reallocf(void *ptr, size_t size); DESCRIPTION The reallocf() function is identical to the realloc() function, except that it will free the passed pointer when the requested memory cannot be allocated. This is a FreeBSD specific API designed to ease the problems with traditional coding styles for realloc() causing memory leaks in libraries. RETURN VALUES The reallocf() function returns a pointer, possibly identical to ptr, to the allocated memory if successful; otherwise a NULL pointer is returned, and errno is set to ENOMEM if the error was the result of an allocation failure. The reallocf() function deletes the original buffer when an error occurs. SEE ALSO realloc(3) HISTORY The reallocf() function first appeared in FreeBSD 3.0. FreeBSD 14.1-RELEASE-p8 January 31, 2010 FreeBSD 14.1-RELEASE-p8

Navigation Options