svn commit: r329237 - head/sys/libkern

Ravi Pokala rpokala at mac.com
Tue Feb 13 20:40:27 UTC 2018


-----Original Message-----
From: <owner-src-committers at freebsd.org> on behalf of Eric van Gyzen <eric at vangyzen.net>
Date: 2018-02-13, Tuesday at 11:52
To: Ed Maste <emaste at freebsd.org>, Ian Lepore <ian at freebsd.org>
Cc: src-committers <src-committers at freebsd.org>, <svn-src-all at freebsd.org>, <svn-src-head at freebsd.org>
Subject: Re: svn commit: r329237 - head/sys/libkern

> ...
> 
> I prefer '\0' here because it tells the reader that it's a NUL
> character, as opposed to a NULL pointer or a zero integer.  Yes, the
> reader should already know that, but the author can /help/ the reader by
> communicating more clearly and completely.
>
> Eric

Out of morbid curiosity, does any standard (or any of our non-standard headers) define a "NUL" macro for use as a manual string terminator?

-Ravi (rpokala@)




More information about the svn-src-head mailing list