By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

Re: Ambiguous/debatable errata

P: n/a
For the errata:

"Index: stddef.h is listed but not summarized in the text; It needs a
section in Appendix B".
I propose the following:

"B12. Common standard type definitions: <stddef.h>

The standard header <stddef.hdefines the following types and macros:

The types are:

ptrdiff_t
A signed integral type of the result of subtracting two pointers.

wchar_t
An integral type whose range of values can represent distinct
wide-character codes for all members of the largest extended character
set specified among the supported locales; the null character has the
code value 0 and each member of the basic character set has a code value
equal to its value when used as the lone character in an integer
character constant.

size_t
An unsigned integral type of the result of the sizeof operator.
The macros are:

NULL
NULL expands to an implementation-defined null pointer constant.

offsetof(type, member-designator)
offsetof expands to an integral constant expression of type size_t,
the value of which is the offset in bytes to the structure member
(member-designator), from the beginning of its structure (type)".
Any feedback is welcome.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
A minor modification:
For the errata:

"Index: stddef.h is listed but not summarized in the text; It needs a
section in Appendix B".
I propose the following:

"B12. Common standard type definitions: <stddef.h>

==The header <stddef.hdefines the following types and macros:

The types are:

ptrdiff_t
A signed integral type of the result of subtracting two pointers.

wchar_t
An integral type whose range of values can represent distinct
wide-character codes for all members of the largest extended character
set specified among the supported locales; the null character has the
code value 0 and each member of the basic character set has a code value
equal to its value when used as the lone character in an integer
character constant.

size_t
An unsigned integral type of the result of the sizeof operator.
The macros are:

NULL
NULL expands to an implementation-defined null pointer constant.

offsetof(type, member-designator)
offsetof expands to an integral constant expression of type size_t,
the value of which is the offset in bytes to the structure member
(member-designator), from the beginning of its structure (type)".
Any feedback is welcome.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.