svn commit: r329237 - head/sys/libkern

Warner Losh imp at bsdimp.com
Tue Feb 13 20:55:49 UTC 2018


On Tue, Feb 13, 2018 at 1:40 PM, Ravi Pokala <rpokala at mac.com> wrote:

> -----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?
>

No. There's no standard define.

Warner


More information about the svn-src-head mailing list