- #include <stdio.h>
- #include <dos.h>
- #include <malloc.h>
- void main(void)
- {
- char far *dta;
- dta = getdta();
- printf("Current DTA is %lXn", dta);
- if (MK_FP(_psp, 0x80) == dta)
- printf("DTA is at same location as command linen");
- dta = _fmalloc(128);
- setdta(dta);
- printf("New DTA is %lXn", getdta());
- }