Confusion on pointer
define FP_SEG(fp) (*((unsigned *)&(fp)+1))
define FP_OFF(fp) (*((unsigned *)&(fp)))
char far * tab;
unsigned int ttseg;
long ttlen;
main()
{
.............
F_1(arg1,&ttseg,&ttlen); /* ttseg = Segment Address
ttlen = Segment length */
FP_SEG(tab) = ttseg;
FP_OFF(tab) = 0;
................
}
Assume the application is like that , What's the functionality of
FP_SEG(tab) = ttseg;
FP_OFF(tab) = 0;
It's running understand MC6.00 + DOS