Mail Archives: djgpp/1998/03/26/21:01:18
At 05:03 3/25/1998 +0200, MNR. LE SMITH wrote:
>i recently tried to copy a text string out of conventional memory
>(i.e. i had its segment & offset) into a local char array.
>
>i used dosgetmem() as described in the documentation,
>( phys_addr = 16*segment + offset etc..)
>
>however, it only filled my char array with garbage, but when i
>changed the variable to 'static char..' it worked !
>
>i wonder if anyone can tell me what happened there !?
Can you post an example? There shouldn't be any reason for it not to work
with an auto array.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -