TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil.Heller!1.106.2000.0{at}filegate.n
from: Bob Stout
date: 2003-11-16 16:25:00
subject: Re: [C] word sizes

From: Bob Stout 

The ANSI/ISO/IEC standard is available in PDF format for as little as $18,
downloadable from http://webstore.ansi.org/ansidocstore/>. I suggest
everyone buy a copy and keep it on their machine.

To the question at hand... Referring to ISO/IEC 9899:1999, "5.2.4.2.1
Sizes of integer types ", the only hard-wired type is
char (signed or unsigned), for which CHAR_BIT is defined as 8. All other
integral types are defined by minima and maxima. A "word" is not
a formal integral type in the standard.  In most implementations, a word is
16 bits. More problematic is an int which is typically 16 bits on 8- and
16-bit architectures, or 32 bits on 32-bit or larger architectures.

-------------------------------------------------------------
Consulting: http://www.MicroFirm.biz/ Web graphics development:
http://Image-Magicians.com/ Software archives:
http://snippets.snippets.org/
  c.snippets.org/   cpp.snippets.org/      java.snippets.org/
  d.snippets.org/   python.snippets.org/   perl.snippets.org/
  dos.snippets.org/ embedded.snippets.org/ apps.snippets.org/
Audio and loudspeaker design:
  http://LDSG.snippets.org/   http://www.diyspeakers.net/

--- BBBS/LiI v4.01 Flag-5
* Origin: Prism bbs (1:261/38)
SEEN-BY: 633/267 270
@PATH: 261/38 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.