Syntax
void* vm_realloc(
    void* ptr, 
    VMUINT size
);
ContentsIndex
PreviousUpNext
vm_realloc
Syntax
void* vm_realloc(
    void* ptr, 
    VMUINT size
);
Description

Reallocates the specified size of memory for the memory already allocated before. The content of the memory will be "copied".

Parameters
Parameters 
Description 
void* ptr 
[IN] The pointer to the memory to be copied. If allocation succeeds, the memory pointed to by the ptr will be freed. 
VMUINT size 
[IN] The number of bytes to be allocated. 
Returns

A pointer to the memory allocated. Returns NULL if allocation failed, and 

the memory pointed to by the ptr will not be freed.

File

vmmemory.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.