home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 14
/
CD_ASCQ_14_0694.iso
/
maj
/
653
/
break.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
494b
|
30 lines
/*
** Set or determine the status of the DOS "SET BREAK=" command
*/
#include <dos.h>
#define BOOL(x) (!(!(x)))
/*
** 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);
}