Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.sys.ibm.pc Subject: Re: Yet Another Turbo C Question Message-ID: <1228@sdrc.UUCP> Date: 23 Mar 90 23:40:02 GMT References: <42900071@uicsrd.csrd.uiuc.edu> Organization: SDRC, Cincinnati Lines: 15 In article <42900071@uicsrd.csrd.uiuc.edu>, dkchen@uicsrd.csrd.uiuc.edu writes: > Recently I tried to port my program from an unix machine to my 386/20 > running turbo/c. To my surprise, turbo/c sometimes returned ds:0000 from > the malloc routine. Consecutive malloc will not solve this problem. malloc returns NULL when there's no more memory left to allocate. Depending on what memory model you're using, you may not have had very much to start with. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@SDRC.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150-2789 AT&T: (513) 576-2070 "You know how Einstein got bad grades as a kid? Well MINE are even WORSE!" -Calvin