Borland C++ reference

getdta

raw OCR

Gets disk transfer address.

Defined in header <dos.h>

Syntax

#include <dos.h>
char far *getdta(void);

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

getdta returns the current setting of the disk transfer address (DTA).

In the small and medium memory models, it's assumed the segment is the current data segment. If you use C exclusively, this will be the case, but assembly routines can set the DTA to any hardware address.

In the compact, large, or huge memory models, the address returned by getdta is the correct hardware address and can be located outside the program.

Return value

getdta returns a far pointer to the current DTA.

See also

Example

#include <dos.h>
#include <stdio.h>
int main(void)

   char far *dta;
   dta = getdta0 ;
   printfC'The current disk transfer address is: %Fp\n", dta)
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.