GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RDSFREE (3)

[Include document man1/alc_contents.mac]

   rdsfree    rdsfree

NAME

rdsfree - free memory place

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameter
Description
Return Value
Errors
Example
See Also

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

[Include document man1/alc_bug_report.1]

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 RDSFREE (3) October 1, 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.