mediaLib Library Functions mlib_realloc(3MLIB)
NAME
mlib_realloc - reallocate a block of bytes
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
void *mlib_realloc(void *ptr, size_t size);
DESCRIPTION
The mlib_realloc() function changes the size of the block
pointed to by ptr to size bytes and returns a pointer to the (possibly moved) block.This function is a wrapper of the standard C function real-
loc().PARAMETERS
The function takes the following arguments: size New size of the block in bytes. ptr Pointer to a block.RETURN VALUES
The function returns a pointer to the reallocated block if successful. Otherwise it returns a null pointer.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
mlib_free(3MLIB), mlib_malloc(3MLIB), malloc(3C), attri-
butes(5)SunOS 5.11 Last change: 2 Mar 2007 1