Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdlib.h>
    void break_off( void );
    void break_on( void );

Description:
    The  break_off function can be used with DOS to restrict break checking
    (Ctrl/C, Ctrl/Break) to screen output and keyboard input.  The  break_on
    function can be used with DOS to add break checking (Ctrl/C, Ctrl/Break)
    to other activities such as disk file input/output.

Returns:
    The  break_off and  break_on functions to not return anything.

Example:
    #include <stdio.h>
    #include <stdlib.h>

    void main()
      {
        long i;
        FILE *tmpf;

        tmpf = tmpfile();
        if( tmpf != NULL ) {
          printf( "Start\n" );
          break_off();
          for( i = 1; i < 100000; i++ )
            fprintf( tmpf, "%ld\n", i );
          break_on();
          printf( "Finish\n" );
        }
      }

Classification:
    DOS

Systems:
     break_off - DOS, Windows, Win386

    break_on - DOS, Windows, Win386

See Also:
    signal

See Also: signal

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