home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / SRC / CHECKBREAK.C < prev    next >
C/C++ Source or Header  |  1991-08-16  |  219b  |  20 lines

  1.  
  2.  
  3. /*
  4.  * CHECKBREAK()
  5.  *
  6.  *    Return    1 = break pressed,
  7.  *        0 = break not pressed
  8.  */
  9.  
  10. #include <local/typedefs.h>
  11.  
  12. #define SBF  (SIGBREAKF_CTRL_C|SIGBREAKF_CTRL_D)
  13.  
  14. int
  15. checkbreak()
  16. {
  17.     return(SetSignal(0,0) & SBF);
  18. }
  19.  
  20.