Subject: Re: segmentation fault on fclose?
To: None <firstname.lastname@example.org>
From: Ty Sarna <email@example.com>
Date: 09/13/1994 14:05:48
In article <Cw0zH0.J2y@deshaw.com> firstname.lastname@example.org (Christos Zoulas) writes:
> The unix library is written with out any argument checking in most places;
> it is intended to be fast and small, and not to protect a programmer from
> her/his own bugs.
The example you gave is a tad excessive, but it might be a good idea to
give the system libraries a liberal sprinking of assert()s controlled by
#ifdef DIAGNOSTIC (by analogy with the kernel, and for the same
reasons). Not only would that help programmers catch errors in their
code more quickly, but it might also catch errors in the libraries
Ty Sarna "You can lead a gift horse to water but
email@example.com you can't make him look you in the mouth"