Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>getcbrk() get control-break setting</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getcbrk()               Get Control-Break Setting

 #include   <dos.h>

 int        getcbrk(void);

    getcbrk() returns the current status of control-break checking by
    using the MS-DOS system call 0x33.

       Returns:     0, if control-break checking is 'off'; 1, if control-
                    break checking is on.

   Portability:     MS-DOS only.

   -------------------------------- Example ---------------------------------
    The following statements check to see if control-break is being
    checked for by the system.

           #include <stdio.h>   /* for printf */
           #include <dos.h>     /* for getcbrk */

           main()
           {
               if (getcbrk() == 1)
                   printf("control-break checking is on\n");
               else
                   printf("control-break checking is off\n");
           }


See Also: setcbrk()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson