Microsoft C - Heap space question

David T. Sandberg dts at quad.uucp
Fri Sep 8 07:38:20 AEST 1989


In article <2930 at puff.cs.wisc.edu> schaut at rt1.cs.wisc.edu (Richard Schaut) writes:
:In article <4143 at csd4.csd.uwm.edu> chad at csd4.csd.uwm.edu (D. Chadwick Gibbons) writes:
:|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.

MSC 5.1 does indeed return void pointers from all of it's malloc calls.
It should be noted that the referred-to function is actually "void far
*_fmalloc(size_t size);", and that when compiling with large model,
malloc() calls are mapped to _fmalloc by default.

-- 
                                  David Sandberg - Quadric Systems
 "As of Friday, August 25, 1989,  PSEUDO: dts at quad.uucp
      Triton is a Placemat."      ACTUAL: ..uunet!rosevax!sialis!quad!dts



More information about the Comp.lang.c mailing list