home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / BREAK.C < prev    next >
C/C++ Source or Header  |  1997-07-05  |  532b  |  31 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Set or determine the status of the DOS "SET BREAK=" command
  5. */
  6.  
  7. #include <dos.h>
  8. #include "snpdosys.h"
  9.  
  10. /*
  11. **  Returns status of DOS "SET BREAK" command
  12. */
  13.  
  14. int isBreakOn(void)
  15. {
  16.       union REGS regs;
  17.  
  18.       regs.x.ax = 0x3300;
  19.       intdos(®s, ®s);
  20.       return (int)regs.h.dl;
  21. }
  22.  
  23. void setBreak(int OnOff)      /* Off = 0, On = 1      */
  24. {
  25.       union REGS regs;
  26.  
  27.       regs.x.ax = 0x3301;
  28.       regs.h.dl = OnOff;
  29.       intdos(®s, ®s);
  30. }
  31.