Xref: utzoo comp.sys.mac.programmer:5315 comp.sys.mac:29404 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!ames!ncar!boulder!tramp!ewing From: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: LSC3.0 brain damage Keywords: stdio, pointers Message-ID: <7859@boulder.Colorado.EDU> Date: 2 Apr 89 07:08:56 GMT References: <1704@ncar.ucar.edu> Sender: news@boulder.Colorado.EDU Reply-To: ewing@tramp.Colorado.EDU (EWING DAVID JAMES) Distribution: usa Organization: University of Colorado, Boulder Lines: 16 You've committed one of the standard C portability errors. You've assumed that a pointer is the same sizeof() as an int. Not true. LSC (and many other 680x0 compilers) has int's taking up 16 bits instead of 32. Try changing your fprintf :-). while (max--) fprintf (stderr,"ptr= %ld\n", ptr++); Perhaps this is slightly more portable. (ah, for a %p :->) -dave- | Dave Ewing | ewing@tramp.colorado.EDU | | 4437 Clipper Ct. | AppleLink: D2408 | | Boulder, CO 80301 | GEnie: D.EWING1 | | | Compu$erve: 73447,1726 |