Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!emory!dixie.com!nanovx!msa3b!mgphl From: mgphl@msa3b.UUCP (Michael Phillips) Newsgroups: comp.os.msdos.misc Subject: Re: !@#$ 64k segments! Message-ID: <1595@msa3b.UUCP> Date: 10 Apr 91 11:31:27 GMT References: <14049@ccncsu.ColoState.EDU> Organization: Dun and Bradstreet Software, Inc., Atlanta, GA Lines: 11 millerje@mozart.cs.colostate.edu (Jeff Miller) writes: >I am writing a program in C, and just to make life easy, I want to malloc >(actually calloc) a data space > 64k. I noticed that if I malloc <65535 >bytes (<64k) I can fread directly into that buffer. What I'd like to do >is be able to fread into a buffer about 256k in size. (The reason for this >is speed). I have tried the large memory model as well as huge pointers, but >to no avail. Are there any special versions of malloc &/or calloc that >will let me do this? Try using farcalloc -or- farmalloc.