Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!paperboy!hsdndev!husc6!purdue!ccncsu!mozart!millerje From: millerje@mozart.cs.colostate.edu (Jeff Miller) Newsgroups: comp.os.msdos.misc Subject: !@#$ 64k segments! Message-ID: <14049@ccncsu.ColoState.EDU> Date: 7 Apr 91 20:51:15 GMT Sender: news@ccncsu.ColoState.EDU Organization: Colorado State Computer Science Department Lines: 12 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? _____________________________________________________________________________ | | | "NUKE THE UNBORN GAY WHALES!" | Jeff Miller | | - graffiti | millerje@handel.CS.ColoState.Edu | |_____________________________________________________________________________|