home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume8 / gnuplot1.10A / part07 / help / initialize.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-09  |  433 b   |  30 lines

  1. /*
  2.  * Program    : help
  3.  * Module    : initialize.c
  4.  * Programmer    : R. Stolfa
  5.  *
  6.  * Purpose :    To initialize all global data structures
  7.  *
  8.  * Modification History:
  9.  *   08/31/87    Created
  10.  */
  11.  
  12. #include    "global.h"
  13.  
  14. initialize()
  15. {
  16.     int    i;
  17.  
  18.     /*
  19.      * Catch all signals that might not free up memory....
  20.      */
  21.     signal (SIGINT, catch);
  22.     signal (SIGTERM, catch);
  23.  
  24.     Path[0] = '\0';
  25.     cur_path[0] = '\0';
  26.  
  27.     for (i = 0; i < 3 ; i ++)
  28.         _list[i] = NULL;
  29. }
  30.