Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - dos_set_cntl_break http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                            dos_set_cntl_break

   Usage
   #include <dos.h>
   void dos_set_cntl_break(int on_off);

   Description
   Turns  the control break checking on or off. A non-zero value for  the
   on/off argument turns control break checking on and a zero value turns
   off  control break checking. This function has the same effect as  the
   BREAK command does for the DOS command processor.

   dos_set_verify
   Usage
   include <dos.h>
   void dos_set_verify(int on_off);

   Description
   Sets  automatic read-after-write verification on (1) or off (1).  This
   function  has  the same effect as the MS DOS commands  VERIFY  ON  and
   VERIFY OFF.

   Example
   #include <dos.h>
   #include <stdio.h>
   char buffer[512];
   main()
   {
   char *offset;
   long result;
   int drive = 0;
        result = dos_getdiskfreespace(drive);
        printf("Default Drive = %ld Bytes free\n",result);
        dos_abs_disk_read(0,1,0,buffer);
        offset = &buffer[3];
        printf("Boot Record OEM = %s\n",offset);
   }


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