From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: GNU pointers Date: Wed, 8 Jul 1998 17:18:15 -0300 Organization: University of New Brunswick Lines: 14 Message-ID: References: NNTP-Posting-Host: sol-alt1.unb.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 8 Jul 1998, Mark Bidewell wrote: ->Does GNU have a way to synthesize pointer addresses (segment : offset) for ->their component parts? If you have void* p; short seg = (short)(((int)p>>4)&0xFFFF); short off = (short)((int)p & 0xF); I believe that will do the trick. (But only if your original address was below 1M). Endlisnis [I have a pyramid of wingyness]