From owner-freebsd-chat Mon Nov 27 21:43:28 1995 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA04207 for chat-outgoing; Mon, 27 Nov 1995 21:43:28 -0800 Received: from mramirez.sy.yale.edu (mramirez.sy.yale.edu [130.132.57.207]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA04197 for ; Mon, 27 Nov 1995 21:43:21 -0800 Received: (from mrami@localhost) by mramirez.sy.yale.edu (8.6.12/8.6.9) id AAA04469; Tue, 28 Nov 1995 00:43:01 -0500 Date: Tue, 28 Nov 1995 00:43:00 -0500 (EST) From: Marc Ramirez Reply-To: mrami@minerva.cis.yale.edu To: Stephen Hocking cc: chat@freebsd.org Subject: Re: Anybody with a Turbo C++ compiler able to answer a couple of questions? In-Reply-To: <199511280225.CAA04740@netfl15a.devetir.qld.gov.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-chat@freebsd.org Precedence: bulk On Tue, 28 Nov 1995, Stephen Hocking wrote: > What do the macros FP_SEG & FP_OFF do? I think that they are for getting the > segment number & offset respectively of a pointer, but am not sure. I believe you're right. Grep (TC comes with grep! I love that!) through dos.h. If I remember correctly, it's in there (god, I haven't used Turbo C since I was 15 or so). It should, of course, say something like #define FP_SEG(x) ((long)(x)<<16L) #define FP_OFF(x) ((long)(x)&65535L) Marc.