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>getdta() get disk transfer address</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getdta()                Get Disk Transfer Address

 #include   <dos.h>

 char       far *getdta(void);

 getdta() returns a pointer to the current disk transfer address (DTA).  The
 address pointed to in compact, large, and huge memory models is the correct
 hardware address and may be outside the program area. In small and medium
 memory models, the segment is assumed to be the current data segment.

       Returns:     A pointer to the current disk transfer address, as
                    described above.

         Notes:     Beware that in small and medium memory models,
                    assembly routines may set the disk transfer address
                    to any hardware address.

   Portability:     MS-DOS only.

   -------------------------------- Example ---------------------------------

    The following statement gets the current disk transfer address.

           #include <dos.h>     /* for getdta */

           main()
           {
               char far *dta;

               dta = getdta();
             }

See Also: setdta()

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