delorie.com/archives/browse.cgi | search |
Date: | Mon, 31 Oct 94 16:36:43 -0500 |
From: | dj AT stealth DOT ctron DOT com (DJ Delorie) |
To: | babcock AT cfa DOT harvard DOT edu |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: NULL pointers in (ANSI) string functions [was: strcat() ?] |
> It might be nice to have a _debugging_ library which checked for things like > null pointers passed to strxxx() routines. A related item: Borland compilers > tend to print "(null)" when you pass null to printf rather than crashing or > printing garbage. I think a stack trace (or gdb exception) is the best kind of debugging - "It broke - HERE" printf in djgpp also prints (null) when %s gets a NULL pointer.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |