函数名: setcbrk
功 能: 设置Control-break
用 法: #include <dos.h>
int setcbrk(int value);
程序例:
#include <dos.h>
#include <conio.h>
#include <stdio.h>
int main(void)
{
int break_flag;
printf("Enter 0 to turn control break off\n");
printf("Enter 1 to turn control break on\n");
break_flag = getch() - 0;
setcbrk(break_flag);
if (getcbrk())
printf("Cntrl-brk flag is on\n");
else
printf("Cntrl-brk flag is off\n");
return 0;
}