Article View: alt.msdos.programmer
Article #234Re: Turbo C far pointers
From: Charles Hannum
Date: Sun, 29 Oct 1989 05:08
Date: Sun, 29 Oct 1989 05:08
11 lines
786 bytes
786 bytes
Two suggestions:
1) Your main problem is that you need to use the declaration:
far float *ptr;
I won't even try to explain what happens otherwise.
2) You really should use "ptr[i]" rather than "*(ptr+i)". It effectively
does the same thing, but it makes for much cleaner and much more
readable code.
Technical Details
Message-ID:
<89302.010819CMH117@PSUVM.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!ginosko!samsung!brutus.cs.uiuc.edu!psuvax1!psuvm!cmh117References:
<565@titan.tsd.arlut.utexas.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!ginosko!samsung!brutus.cs.uiuc.edu!psuvax1!psuvm!cmh117 From: CMH117@PSUVM.BITNET (Charles Hannum) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc Subject: Re: Turbo C far pointers Message-ID: <89302.010819CMH117@PSUVM.BITNET> Date: 29 Oct 89 05:08:19 GMT References: <565@titan.tsd.arlut.utexas.edu> Organization: Penn State University Lines: 11