home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / dnet / dnet2.3.2 / amiga / suplib / checkbreak.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  219 b   |  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.