Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!mips!zaphod.mps.ohio-state.edu!ub!clarkson!gomer From: gomer@spiff.soe.clarkson.edu (Paul Kronenwetter) Newsgroups: comp.lang.c Subject: Malloc'ing > 64kb Message-ID: Date: 28 Jun 91 21:16:32 GMT Sender: usenet@grape.ecs.clarkson.edu Organization: Clarkson University Lines: 26 I've dug through FAQ and couldn't find anything relating to this: I need to malloc space greater than 64k.. ie: char file; ... file=malloc(70000L) Granted the syntax for 70000L probably isn't correct just make believe it works.. ;-) The real problem is that I need both the space and to use the str??? functions.. as well as file[count]=fgetc(infile); assuming count is a long unsigned int > 0xffff... Does anyone see a way to do this or am I going to have to write my own routines (gasp) to do this sort of thing using far pointers & farmalloc... -Paul Paul Kronenwetter - N2KIQ |FM: 146.91 |Snail Mail: Box 6942, Potsdam, NY gomer@spiff.soe.clarkson.edu| 444.15 | 13699-6942 "The right half of the brain controls the left half of the body. This means that only left handed people are in their right mind." -- Paul Kronenwetter - N2KIQ |FM: 146.91 |Snail Mail: Box 6942, Potsdam, NY gomer@spiff.soe.clarkson.edu| 444.15 | 13699-6942 "The right half of the brain controls the left half of the body. This means that only left handed people are in their right mind."