home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
SNPD9404.ZIP
/
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);
}