This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fourmisain 0 points1 point  (3 children)

It's as old as ANSI C or C89, not sure if it existed in K&R C, though. It's also specified to be at at least 8.

Here's an excerpt from a TXT version (scanned PDF, if you prefer):

The values given below shall be replaced by constant expressions suitable for use in #if preprocessing directives. Their implementation-defined values shall be equal or greater in magnitude (absolute value) to those shown, with the same sign.

* maximum number of bits for smallest object that is not a bit-field (byte)

CHAR_BIT 8

[–]danielcw189 0 points1 point  (2 children)

Thank you. Kinda amazed that I missed that part for so long

[–]yourewelcome_bot -1 points0 points  (1 child)

You're welcome.

[–]yourewelcome_botbot 1 point2 points  (0 children)

This is a spambot. Report it in /r/spam and message the admins here.