carta
freerdsfig(3)

freerdsfig3

Frees memory associated to a figure

Synopsys

#include "rdsnnn.h"
void freerdsfig( Figure )
  rdsfig_list ∗Figure;

Parameter

Figure

it's the pointer of the figure to be deleted.

Overview

This function free the memory associated to the figure. Memory place used by the Pointers of the rdsfig_list structure is not free so the user has to free these pointers before calling the freerdsfig function.

Return value

nothing

Errors

none

Examples

#include "mutnnn.h"
#include "rdsnnn.h"
#include "rtlnnn.h"
	    main()
	     {
	       rdsfig_list ∗Figure;
               mbkenv();
               rdsenv();
               loadrdsparam();
	       Figure = allocrdsfig ();
	       Figure->NAME = rdsalloc(strlen("core")+1,RDS_ALLOC_BLOCK);
	       strcpy(Figure->NAME,"core");
	       ...
	       rdsfree    (Figure->NAME,RDS_ALLOC_BLOCK); 
	       /∗ ∗/ freerdsfig ( Figure,RDS_ALLOC_BLOCK);
	     }

History

  • Debian 10 (Buster) to Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie) to Debian 7 (Wheezy)

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