Table of Contents

Name

rdsfree - free memory place

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Synopsys

#include rdsnnn.h"
void rdsfree( Pointer, Size )

char
*Pointer; unsigned int Size;

Parameter

Pointer
pointer to the memory to free.
Size
Size of the memory to free.

Description

The rdsfree function deletes memory of size='Size' allocated with rdsalloc function. If the parameter Size is set to ZERO (or RDS_ALLOC_BLOCK) then the memory is deleted by BLOCK else the memory is deleted by HEAP.

Note : A memory allocated by BLOCK (resp. by HEAP) must be deleted by BLOCK (resp. by HEAP).

Return Value

nothing

Errors

none

Example

#include rdsnnn.h"
main()
{
rdsrec_list *Rectangle;
rdsfig_list *Figure;

Figure
= allocrdsfig (); Rectangle = allocrdsrec (); Rectangle->X = 20; Rectangle->Y = 20; Rectangle->DX = 48; Rectangle->DY = 8; ... /* */ rdsfree ( Rectangle, sizeof (rdsrec_list)); /* deletes a figure allocated by block */ /* */ rdsfree ( Figure , RDS_ALLOC_BLOCK); }

See Also

librds, rdsalloc

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.