home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / libs / plotlib.lha / Plot_2.lzh / Examples / bsp1.c next >
Encoding:
C/C++ Source or Header  |  1990-01-08  |  488 b   |  37 lines

  1. #include <stdio.h>
  2. #include <plot/plotlib.h>
  3.  
  4. main()
  5. {
  6.     int erfolg,id;
  7.     char a;
  8.  
  9.     erfolg = open_plot();
  10.     if (!erfolg)
  11.     {
  12.         dis_ploterror();
  13.         exit(5);
  14.     }
  15.  
  16.     id = load_data("Bsp1.plt",NOTYP);
  17.     if (!id)
  18.         dis_ploterror();
  19.     else
  20.     {
  21.         erfolg = display(SCREENOUT,GRAPHNOTSET);
  22.         if (!erfolg)
  23.             dis_ploterror();
  24.         else
  25.         {
  26.             a = getchar();
  27.             erfolg  = display(SCREENCLOSE,NULL);
  28.             if (!erfolg)
  29.                 dis_ploterror();
  30.         }
  31.     }
  32.     erfolg = close_plot();
  33.     if (!erfolg)
  34.         dis_ploterror();
  35.     exit(0);
  36. }
  37.