freerdsins(3)

freerdsins3

Frees memory associated to an instance

Synopsys

 #include "rdsnnn.h"
 void freerdsins ( Instance )
   rdsins_list ∗Instance;

Parameter

Instance

Pointer of the instance to free

Overview

This function frees the memory associated to the instance. Memory place used by the Pointers of the rdsins_list structure is not free so the user has to free these pointers before calling the freerdsins() function.

Return value

nothing

Errors

none

Examples

          #include "mutnnn.h"
          #include "rdsnnn.h"
          #include "rtlnnn.h"
	    main()
	     {
	       rdsins_list ∗Instance;
               mbkenv();
               rdsenv();
               loadrdsparam();
	       Instance = allocrdsins ();
	       Instance->NAME = rdsalloc(strlen("and1")+1,RDS_ALLOC_BLOCK);
	       strcpy(Instance->NAME,"and1");
	       ...
	       rdsfree    (Instance->NAME,RDS_ALLOC_BLOCK); 
	       /∗ ∗/ freerdsins ( Instance,RDS_ALLOC_BLOCK);
	     }

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.