I am working on a project,and can't figure out why the segment and offset does not point to the 123456789 string in memory ?
If I use an array I can see the number string in memory, but
not when I use the a pointer and malloc ???
char far *buffer;
buffer = (char *) farmalloc(15);
buffer = "\n12345678901234567890\0";
printf("\n DS: %x ES %x\n", _DS,_ES);
printf("\n buffer: %x\n", &buffer);
printf("\n far off buffer=%x far seg buffer=%x\n", FP_OFF(buffer), FP_SEG(buffer));