home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
snip9707.zip
/
BREAK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-05
|
532b
|
31 lines
/* +++Date last modified: 05-Jul-1997 */
/*
** Set or determine the status of the DOS "SET BREAK=" command
*/
#include <dos.h>
#include "snpdosys.h"
/*
** Returns status of DOS "SET BREAK" command
*/
int isBreakOn(void)
{
union REGS regs;
regs.x.ax = 0x3300;
intdos(®s, ®s);
return (int)regs.h.dl;
}
void setBreak(int OnOff) /* Off = 0, On = 1 */
{
union REGS regs;
regs.x.ax = 0x3301;
regs.h.dl = OnOff;
intdos(®s, ®s);
}