On Mon, 2004-11-01 at 16:04, Bruce Momjian wrote:
> I prefer strlen() myself but Tom prefers sizeof(). In the long run I
> would like to create a 'sizeof' that doesn't include the null as a
> global define that we can use for any hard-coded string.
Tom, can you elaborate on why you prefer sizeof()? ISTM that a decent
compiler will evaluate the strlen() at compile-time if the argument is a
compile-time constant. GCC will do this (even at -O0!), for example.
-Neil