Home > Fresh News > integer types with specified widths

integer types with specified widths

January 27th, 2011 Leave a comment Go to comments

stdint.h is a header file in the C standard library introduced in the C99 standard library section 7.18 to allow programmers to write more portable code by providing a set of typedefs that specify exact-width integer types, together with the defined minimum and maximum allowable values for each type, using macros. This header is particularly useful for embedded programming which often involves considerable manipulation of hardware specific I/O registers requiring integer data of fixed widths, specific locations and exact alignments. stdint.h (for C), and stdint.h and cstdint (for C++).

stdint.h defines:


stdint.h is not shipped with older C++ compilers and Visual Studio C++ products prior to Visual Studio 2010.


  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.