dellofig(3) delete and free a logical figure

SYNOPSYS

#include "mlo.h"
int dellofig(figname)
char *figname;

PARAMETER

figname
Name of the figure to be deleted

DESCRIPTION

dellofig deletes the figure called figname from the list of logical figure in memory. All the lists of elements belonging to the figure are also deleted and freed.

RETURN VALUE

dellofig returns 1 if the figure was delete, and 0 if no figure called figname was present in memory.

EXAMPLE

#include "mlo.h"
void delete_na2_y()
{
   if (dellofig("na2_y"))
      (void)fputs("deleted na2_y successfully", stdout);
   else
      (void)fputs("na2_y not present in ram !", stdout);
}