Malloc'ing > 64kb

Paul Kronenwetter gomer at spiff.soe.clarkson.edu
Sat Jun 29 07:16:32 AEST 1991


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 at 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 at 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."



More information about the Comp.lang.c mailing list