Talk:Inttypes.h
![]() | C/C++ NA‑class Low‑importance | |||||||||
|
![]() | India Redirect‑class | ||||||
|
Not a part of API?
Please explain why is inttypes.h not a part of API?
Jobin (talk) 15:52, 19 September 2011 (UTC)
Move to stdint.h
This article is currently incorrect. Those int types are defined in stdint.h. --hdante 21:45, 10 January 2007 (UTC)
Well, it's correct that these types are defined in stdint.h, but they're also defined in inttypes.h. The standard says this:
The header <inttypes.h> includes the header <stdint.h> and extends it with additional facilities provided by hosted implementations.
The article is incomplete. inttypes.h declares many macros and functions that it does not mention. Pfaffben 23:59, 10 March 2007 (UTC)
stdint.h
inttypes.h includes stdint.h - it does not define the integral types itself. From the source:
The <inttypes.h> header shall include the <stdint.h> header.
The <inttypes.h> header shall define at least the following type:
imaxdiv_t
Information about stdint.h should go in the article for that header, not here.