Microsoft C - Heap space question

Richard Schaut schaut at rt1.cs.wisc.edu
Thu Sep 7 12:43:18 AEST 1989


In article <4143 at csd4.csd.uwm.edu> chad at csd4.csd.uwm.edu (D. Chadwick Gibbons) writes:
|[yuck!]
|	MicroSoft, and most other DOS compilers for that matter, provide a
|function to allocate heap space using far pointers.  This way, if the heap
|requirements exceed 64K, it will grab another chunk of system memory.  The
|function is declared--I believe--as "char far *farmalloc(size_t);"  
				      ^^^^
If MS C is ANSI compatible, then the function would be declared as
"void far *farmalloc(size size_t);" thereby removing the need to cast
the return value to a pointer to a specific kind of object.
--
Rick

"Any questions?  Any answers?  Anyone like a mint?" -- source unknown



More information about the Comp.lang.c mailing list