Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: The integral type 'byte' (was Re: Suggested method for returning a string from a C program?) Date: Wed, 26 Mar 2025 13:09:44 -0700 Organization: None to speak of Lines: 51 Message-ID: <87friz5zav.fsf@nosuchdomain.example.com> References: <868qp1ra5f.fsf@linuxsc.com> <20250319115550.0000676f@yahoo.com> <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com> <20250320204642.0000423a@yahoo.com> <87iko3s3h2.fsf@nosuchdomain.example.com> <874izi82a4.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 26 Mar 2025 21:09:44 +0100 (CET) Injection-Info: dont-email.me; posting-host="469e8dc95fda8e96af14b48a4cec7ffc"; logging-data="2577851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uzfKBcsVwT00XFvLlgPF4" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:WRzrsMCnL8LkWWJz9jFBJG1QF5g= sha1:2K70eYPtpoNkmnHKS2VFVmfiAoo= David Brown writes: > On 25/03/2025 19:18, Janis Papanagnou wrote: >> On 25.03.2025 10:38, David Brown wrote: >>> >>> Personally, I think [...] >> (I'll skip most of that in your post.) >>> >>> Thus pretty much any programmer in the last 50 years sees "byte" as >>> synonymous with 8-bit octet, including C programmers, [...] >>> and for the last >>> 30 years or so it has been the ISO standard definition of the term. >> I suppose you meant the "ISO _C_ standard definition"? > > No, I meant ISO standards. ISO 2382, ISO 60027, ISO 80000. I just downloaded ISO 2382 from iso.org. An extremely odd process; I had to register and pay CHF 0 (at least it didn't ask for payment information), and got a PDF with no actual information other than a link to an iso.org web page that's publicly visible anyway. Here's the definition of "byte" from that document: """ 2121333 byte string that consists of a number of bits, treated as a unit, and usually representing a character or a part of a character Note 1 to entry: The number of bits in a byte is fixed for a given data processing system. Note 2 to entry: The number of bits in a byte is usually 8. Note 3 to entry: byte: term and definition standardized by ISO/IEC [ISO/IEC 2382-1:1993; ISO/IEC 2382-4:1999]. Note 4 to entry: 01.02.09 (2382) [SOURCE:ISO-IEC-2382-1 * 1993 * * * ] """ ISO 60027 appears to have been superseded by ISO 80000. I'm not going to spend CHF 115 for a copy. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */