home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume11 / watcher / part01 / open_hf.c < prev    next >
C/C++ Source or Header  |  1987-09-27  |  373b  |  24 lines

  1. /*
  2.    open_hf: open the history file for writing out log of what we looked
  3.    at this run.
  4.  
  5.    Kenneth Ingham
  6.  
  7.    Copyright (C) 1987 The University of New Mexico
  8. */
  9.  
  10. #include "defs.h"
  11.  
  12. open_hf()
  13. {
  14.     extern char histfilename[];
  15.     extern FILE *hf;
  16.  
  17.     hf = fopen(histfilename, "w");
  18.     if (hf == NULL) {
  19.         fprintf(stderr, "Unable to open '%s'\n",
  20.             histfilename);
  21.         exit(1);
  22.     }
  23. }
  24.