Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: is_binary_file() Date: Sat, 06 Dec 2025 16:05:45 -0800 Organization: None to speak of Lines: 26 Message-ID: <878qfff95y.fsf@example.invalid> References: <10gvvh8$1vv6e$1@dont-email.me> <87fr9ofks9.fsf@example.invalid> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 07 Dec 2025 00:05:45 +0000 (UTC) Injection-Info: dont-email.me; posting-host="64ddff271f4071acc3d5ff1b00c16802"; logging-data="3214815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KcsgEjZLOg6VrcPCX1KMF" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:xSFFa5dD+a7cOOKgUi7BQ5BKeIU= sha1:V4Qt021MpPQT3oQc0wnVAkdPjig= Xref: csiph.com comp.lang.c:395700 scott@slp53.sl.home (Scott Lurndal) writes: > Keith Thompson writes: [...] >>Please use the term "null bytes", not "NULL bytes". NULL is a standard >>macro that expands to a null pointer constant. > > The proper term IMO is 'NUL' byte as defined by ASCII. That's *a* proper term. It's not the only one. Both ASCII and EBCDIC use the term "NUL" for the character value with all bits set to zero, but C doesn't assume either ASCII or EBCDIC and doesn't use the name "NUL". The standard uses the term "null character", which is technically correct but might not be ideal to refer to a byte in a file whose contents aren't intended to represent characters. I have no problem with the term "NUL", "NUL byte", or "NUL character", but personally I tend to prefer "null byte", "zero byte", or '\0'. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */