Talk:Stddef.h
![]() | This redirect does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
Can the opening statement be improved?
[edit]The article begins by stating that "stddef.h is a header file in the standard library of the C programming language that defines the macros NULL and offsetof as well as the types ptrdiff_t, wchar_t, and size_t". I think this statement might be Windows-specific. For example, the version of stddef.h on my Centos 5.6 Linux system only defines NULL.
Another possible explanation which occurs to me, is that Centos 5.6 may not have implemented some recent standard, which the article is implicitly referencing. I see, for example, that the external link to "stddef.h on The Open Group" points to documentation for a 2008 standard.
At any rate, the opening statement for this article seems only to apply to a subset of implementations of stddef.h.
It might be helpful if someone with a better understanding of the big picture could consider qualifying the opening statement for this article, such that it would be more accurate. Thanks!
- You must be looking at Linux-specific stddef.h file. The C standard (the 1999 version) says that ptrdiff_t and others must be included in conforming implementatio (paragraph 7.17/page 254). 1exec1 (talk) 00:35, 2 August 2011 (UTC)