home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume17 / e2 / part01 / check_hist.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-08  |  385 b   |  21 lines

  1. #include "e.h"
  2.  
  3. /*
  4.  * check_hist()
  5.  *
  6.  * Make sure the history ok. This is called by things which are intending
  7.  * toperform some history-relatd stuff after calling read_hist().
  8.  *
  9.  */
  10. void
  11. check_hist()
  12. {
  13.     if (hist_count == -1){
  14.         e_error("Couldn't find %s history '%s'.", myname, ehist);
  15.     }
  16.  
  17.     if (hist_count == 0){
  18.         e_error("No history for '%s'.", cwd);
  19.     }
  20. }
  21.