Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)



> On Mar 26, 2022, at 9:09 AM, Warner Losh <imp%bsdimp.com@localhost> wrote:
> 
> Since all the 'C' standards[*] use "null-terminated" and "null character", it's likely best to use that terminology because there is a source of truth for its definition in case of ambiguity or doubt.

Ah, but you're giving up the opportunity to use indirection to solve the problem.  By calling it a "C-string", then those who care what the standard calls the terminating character can go look it up! :-)

-- thorpej



Home | Main Index | Thread Index | Old Index