Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RDSFREE(3)		    RDS	PHYSICAL FUNCTIONS		    RDSFREE(3)

NAME
	rdsfree	- free memory place

SYNOPSIS
	#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 rd-
       salloc function.	If the parameter Size  is  set	to  ZERO  (or  RDS_AL-
       LOC_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

ASIM/LIP6			October	1, 1997			    RDSFREE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=rdsfree&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help