why is free() a void?
Karl Heuer
karl at ima.isc.com
Mon Nov 5 17:08:55 AEST 1990
In article <130 at nazgul.UUCP> bright at nazgul.UUCP (Walter Bright) writes:
>Thus, it became apparent that the abort should be moved inside of free().
>That's what the Zortech free function does now, if it detects a corrupted
>heap it prints the message:
> "Heap is corrupted"
>and immediately terminates the program. free() now returns a void.
Good for you. I hope you die with abort() or equivalent rather than exit()
(even if the distinction is minor under DOS); then you can answer the diehards
by telling them to trap SIGABRT.
Karl W. Z. Heuer (karl at ima.isc.com or uunet!ima!karl), The Walking Lint
More information about the Comp.lang.c
mailing list