468,257 Members | 1,449 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

Re: Ambiguous/debatable errata

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
1 1466
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.

Similar topics

1 post views Thread by Charles L | last post: by
7 posts views Thread by Fraser Ross | last post: by
1 post views Thread by Alex Zhitlenok | last post: by
3 posts views Thread by Arpan | last post: by
12 posts views Thread by Nathan Sokalski | last post: by
10 posts views Thread by Zach | last post: by
reply views Thread by Ioannis Vranos | last post: by
7 posts views Thread by Ioannis Vranos | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.