GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REALLOCF (3)

NAME

reallocf - memory reallocation function

CONTENTS

Library
Synopsis
Description
Return Values
See Also
History

LIBRARY


.Lb libc

SYNOPSIS


.In 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
.Fx 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
.Fx 3.0 .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.