- Limits.h
"limits.h" is the header of the general purpose standard library of the
C programming language which includes definitions of the characteristics of common variable types. The values are implementation specific, but may not be of lower magnitude than certain specified values in a conforming C implementation.Member constants
The "minimum-magnitude value" column is the minimum possible magnitude for this constant as specified by the standard. In particular,
_MIN
values represent the minimum magnitude representable in the rarely-usedone's complement andsign-magnitude forms. Most implementations will have larger magnitudes for at least some of these numbers. For instance:
*Two's complement implementations haveSCHAR_MIN
equal to –128 (and similarly for all other_MIN
values).
*32-bit implementations will setINT_MAX
equal to +2,147,483,647 (and likewise forINT_MIN
andUINT_MAX
)
*Unicode -supporting implementations will setMB_LEN_MAX
to 4 or more.
* Many DSPs haveCHAR_BIT
equal to 16 or more [http://www.parashift.com/c++-faq-lite/intrinsic-types.html#faq-26.4] [http://home.att.net/~jackklein/c/inttypes.html#char] .ee also
*
C standard library
*Float.h - Limits on floating-point numbersExternal links
* [http://www.cwi.nl/~steven/enquire.html Enquire] : A program for automatically generating limits.h, and for checking that the values in an existing limits.h are correct
References
* [http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.5.html C Guide--2.5 limits.h] , accessed in September 2006.
Wikimedia Foundation. 2010.