| Home
| Previous
| Next
| Up

PM_realloc

Re-allocate a block of memory

Declaration

void * PMAPI PM_realloc(
void *ptr,
size_t size)

Prototype In

pmapi.h

Parameters

ptr | Pointer to block to resize
size | size of unit in bytes

Return Value

Pointer to allocated memory if successful, NULL if out of memory.

Description

This function reallocates a block of memory that has been previously been allocated to the new of size. The new size may be smaller or larger than the original block of memory. If you have changed the memory allocation routines with the PM_useLocalMalloc function, then calls to this function will actually make calls to the local memory allocation routines that you have registered.

See Also

PM_malloc, PM_calloc, PM_free, PM_useLocalMalloc

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com