Article View: comp.std.c
Article #3970Re: Bytes & Chars
From: Thad Smith
Date: Mon, 11 Sep 1995 16:49
Date: Mon, 11 Sep 1995 16:49
20 lines
1540 bytes
1540 bytes
In article <42vd3s$t58@news.cs.tu-berlin.de>, mfx@cs.tu-berlin.de (Markus Freericks) wrote: >In article <zudUwQ9ytVYE084yn@csn.net> thads@csn.net (Thad Smith) writes: >> Byte is defined in the Standard to be "the unit of data storage large >> enough to hold any member of the basic character set of the execution >> environment..." I was going to say that the defined connection >> between a byte and type char is rather loose, but found that the >> sizeof operator give the size of an object or type in "bytes" and also >> that sizeof (char) is defined to be 1. This seems to establish that a >> char must be the same size as a byte. > >Wouldn't it simplify the understanding of the standard if the term "byte" >was either totally removed from the standard (as it is currently synonymous >with "char"), or totally separated from it? I agree. Defining sizeof (char) to be one byte is a rather round-about way of equating the two, IMHO. It is interesting to note that CHAR_BIT defines the number of bits in a byte, not a char. Thad
Technical Details
Message-ID:
<gBFVwQ9yt9af084yn@csn.net>Path:
arc1-ca.pugleaf.net!teal.csn.net!not-for-mailReferences:
<DDvt89.Jx5@sco.COM> <41nkl7$h53@newsbf02.news.aol.com> <VTxTwQ9ytx0Y084yn@csn.net> <6495251.39947.23296@kcbbs.gen.nz> <zudUwQ9ytVYE084yn@csn.net> <42vd3s$t58@news.cs.tu-berlin.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail From: thads@csn.net (Thad Smith) Newsgroups: comp.std.c Subject: Re: Bytes & Chars Date: 11 Sep 1995 10:49:51 -0600 Organization: T3 Systems Message-ID: <gBFVwQ9yt9af084yn@csn.net> References: <DDvt89.Jx5@sco.COM> <41nkl7$h53@newsbf02.news.aol.com> <VTxTwQ9ytx0Y084yn@csn.net> <6495251.39947.23296@kcbbs.gen.nz> <zudUwQ9ytVYE084yn@csn.net> <42vd3s$t58@news.cs.tu-berlin.de> Reply-To: ThadSmith@acm.org NNTP-Posting-Host: 199.117.27.22