home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / src / plexit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-27  |  506 b   |  28 lines

  1. /* In case of an error this routine is called.  It just prints out the
  2.    error message and trys to clean up as much as possible.
  3.    The user should write his/her own pl_exit() routine, if cleanup needs to
  4.    be done in the user program. */
  5.  
  6. #include "plplot.h"
  7. #include <stdio.h>
  8.  
  9. void plexit(errormsg)
  10. char *errormsg;
  11. {
  12.    PLINT level;
  13.    void pl_exit();
  14.  
  15.    fprintf(stderr,"\n%s\n",errormsg);
  16.    glev(&level);
  17.    if(level > 0) grtidy();
  18.    plfontrel();
  19.    pl_exit();
  20.    exit(1);
  21. }
  22.  
  23. void pl_exit()
  24. {
  25. }
  26.  
  27.  
  28.