Content-type: text/html Man page of mlib_realloc

mlib_realloc

Section: mediaLib Library Functions (3MLIB)
Updated: 2 Mar 2007
Index Return to Main Contents
 

NAME

mlib_realloc - reallocate a block of bytes  

SYNOPSIS

cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>

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 realloc().  

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 attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE

Interface StabilityCommitted

MT-Level

 

SEE ALSO

mlib_free(3MLIB), mlib_malloc(3MLIB), malloc(3C), attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUES
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:38:00 GMT, October 02, 2010