Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!pasteur!agate!ucbvax!hplabs!hpda!hpcupt1!williamo From: williamo@hpcupt1.HP.COM (William O'Shaughnessy) Newsgroups: comp.sys.ibm.pc Subject: Re: Compact data model in Turbo C Message-ID: <5930020@hpcupt1.HP.COM> Date: 14 Nov 88 20:36:59 GMT References: <10040@umn-cs.CS.UMN.EDU> Organization: Hewlett Packard, Cupertino Lines: 15 I'm would guess that your (void *) is meerly type coecing an integer(2 bytes) into a 4 byte pointer. This does not work in the compact model where pointers are 4 bytes. Try adding the declaration extern void *malloc(); to your program. It is good to remember the rule in C that things always default to type int if not specified. Good Luck, and as always no guarantees are given or implied for any of the above. The opinions given above are my personal opinions and not those of my employer. Bill O'Shaughnessy