Fenix Manual
Fenix Manual
Command Reference
Memory Commands

Alloc
Free
Map_Buffer
Memcopy
Memory_Total
Memory_Free
Memset
Memsetw
Realloc

Realloc
Last Modified: May 29, 2005 21:05PM
(Any)
Description

POINTER REALLOC(POINTER MEMORY, int BYTES)

PARAMETERS:
memory: Pointer to a memory zone, given back by a call previous to Alloc.
bytes: Size in bytes wished for the memory zone.

DESCRIPTION:
This function extends or reduces the space reserved in a memory block.

For this it receives two parameters:

first block must be the pointer given back by Alloc when reserving;
the second will be the complete size of the new block of memory.

Perhaps it is necessary to change the block of place in the memory, thing that will do Realloc automatically Realloc in the beginning gives back a pointer to the new block of memory: this pointer must be used from then instead of the one given back originally by Alloc, that stops being valid.

User Contributed Notes
Realloc
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Mon, 30 May 2005 - 10:33:04

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters