Next Previous Contents

2. Coding Conventions

2.1 Infrastructure

Most custom types and tools are documented in the code or the relevant portions of this manual. Some key points apply globally however.

Fixed width types

If you need to use specific width types - such as a 16 bit unsigned integer, use one of the following types. To access them simply include "config.h".

  1. int16_t - 16 bit signed.
  2. u_int16_t - 16 bit unsigned.
  3. int32t - 32 bit signed.
  4. u_int32_t - 32 bit unsigned.
  5. int64_t - 64 bit signed.
  6. u_int64_t - 64 bit unsigned.


Next Previous Contents