Subject: FREEing NULL pointers To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJ's GPP mailing list) Date: Tue, 27 Oct 92 10:31:37 EST From: Stephen Turnbull > One problem I had (that I *don't* seem to have writting C for MS-DOS) > is that the resulting program is very sensitive to where pointers are > pointing. If you try to free a NULL pointer, for instance, you will I thought you were always mod ANSI allowed to free a NULL pointer, but not an uninitialized or previously free'd one. Of course, I haven't programmed in straight C for a while; I *know* you're always allowed to delete a NULL pointer. > get the aforementioned segmentation violation. > > You might look there. > > Bob > -- > Bob Hood thor AT arrakis DOT denver DOT co DOT us H: 303-980-8392 W: 303-632-2180 > --------------------------------------------------------------------------- > The person with the least expertise will have the most opinions... Of course, otherwise I'd never get to participate.... -- Stephen Turnbull The Ohio State University, Department of Economics 410 Arps Hall, 1945 N. High St., Columbus, OH 43210-1172 USA Phone: (614) 292-0654 Fax: ...-3906 Email: turnbull DOT 1 AT osu DOT edu