www.delorie.com/gnu/docs/glibc/libc_680.html   search  
 
Buy the book!


The GNU C Library

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A.5 Data Type Measurements

Most of the time, if you choose the proper C data type for each object in your program, you need not be concerned with just how it is represented or how many bits it uses. When you do need such information, the C language itself does not provide a way to get it. The header files `limits.h' and `float.h' contain macros which give you this information in full detail.

A.5.1 Computing the Width of an Integer Data Type  How many bits does an integer type hold?
A.5.2 Range of an Integer Type  What are the largest and smallest values that an integer type can hold?
A.5.3 Floating Type Macros  Parameters that measure the floating point types.
A.5.4 Structure Field Offset Measurement  Getting measurements on structure types.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003