www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/25/10:03:29

From: "MNR. LE SMITH" <9813152 AT fharga DOT sun DOT ac DOT za>
Organization: Stellenbosch University
To: djgpp AT delorie DOT com
Date: Wed, 25 Mar 1998 17:03:00 +0200
MIME-Version: 1.0
Subject: why does dosgetmem only work with static / global variables
Message-ID: <92ACC242FE@fharga.sun.ac.za>

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 !?

Lou Smith ( student )  ( iBasdvru, South Africa )

p.s. how do newsgroups work ( excuse my ignorance .. )

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019