Path: utzoo!utgpu!watserv1!watmath!att!ima!ima.isc.com From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: why is free() a void? Message-ID: <5241@ima.ima.isc.com> Date: 5 Nov 90 06:08:55 GMT References: <1749@meaddata.meaddata.com> <130@nazgul.UUCP> Sender: karl@ima.ima.isc.com Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 12 Supersedes: <1990Nov02.064409.17973@dirtydog.ima.isc.com> In article <130@nazgul.UUCP> bright@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@ima.isc.com or uunet!ima!karl), The Walking Lint