home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d306 / rexxplplot.lha / RexxPlPlot / src / src.zoo / plend.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-06  |  424 b   |  23 lines

  1. /* Ends a plotting session */
  2.  
  3. #include <stdio.h>
  4. #ifndef AZTEC_C
  5. #include <stdlib.h>
  6. #endif
  7. #include "plplot.h"
  8. #include "declare.h"
  9.  
  10. void plend()
  11. {
  12.       int dev, term, gra, level;
  13.       
  14.       glev(&level);
  15.       if (level == 0) return;
  16.       gdev(&dev,&term,&gra);
  17.       if( heap3 != NULL) free((void *)heap3);
  18.       if( heapc != NULL) free((void *)heapc);
  19.       if (gra != 0) pltext();
  20.       grtidy();
  21.       slev(0);
  22. }
  23.