Standard Integer Types


Detailed Description

 #include <stdint.h> 

Use [u]intN_t if you need exactly N bits.

Since these typedefs are mandated by the C99 standard, they are preferred over rolling your own typedefs.


8-bit types.

typedef signed char int8_t
typedef unsigned char uint8_t

16-bit types.

typedef int int16_t __attribute__ ((__mode__(__HI__)))

Pointer types.

These allow you to declare variables of the same size as a pointer.

typedef int16_t intptr_t
typedef uint16_t uintptr_t

64-bit types.

__extension__ typedef long
long 
int64_t
__extension__ typedef unsigned
long long 
uint64_t


Typedef Documentation

typedef unsigned int uint32_t __attribute__((__mode__(__SI__)))
 

16-bit signed type.

typedef signed char int8_t
 

8-bit signed type.

typedef int16_t intptr_t
 

Signed pointer compatible type.

typedef unsigned char uint8_t
 

8-bit unsigned type.

typedef uint16_t uintptr_t
 

Unsigned pointer compatible type.


Variable Documentation

__extension__ typedef long long int64_t
 

64-bit signed type.

__extension__ typedef unsigned long long uint64_t
 

64-bit unsigned type.


Automatically generated by Doxygen 1.4.1 on 11 Nov 2005.