Netcruzer  V2.02
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
limits.h File Reference

Standard C Libraries -. More...

Go to the source code of this file.

Macros

#define CHAR_BIT   8
 
#define CHAR_MAX   SCHAR_MAX
 
#define CHAR_MIN   SCHAR_MIN
 
#define INT_MAX   SHRT_MAX
 
#define INT_MIN   SHRT_MIN
 
#define LLONG_MAX   0x7fffffffffffffffLL
 
#define LLONG_MIN   (-LLONG_MAX -1)
 
#define LONG_MAX   0x7fffffff
 
#define LONG_MIN   (-LONG_MAX -1)
 
#define MB_LEN_MAX   1
 
#define SCHAR_MAX   0x7f
 
#define SCHAR_MIN   (-SCHAR_MAX -1)
 
#define SHRT_MAX   0x7fff
 
#define SHRT_MIN   (-SHRT_MAX -1)
 
#define UCHAR_MAX   0xff
 
#define UINT_MAX   USHRT_MAX
 
#define ULLONG_MAX   0xffffffffffffffffULL
 
#define ULONG_MAX   0xffffffffU
 
#define USHRT_MAX   0xffff
 

Detailed Description

Standard C Libraries -.

Compiler:
MPLAB XC16 compiler

Description

The header file, limits.h, consists of macros that define the minimum and maximum values of integer types. Each of these macros can be used in 'if' preprocessing directives.

Software License Agreement

The documentation in this header file has been copied from the documentation provided with the Microchip MPLAB XC16 compiler. The original license agreement included with the XC16 compiler applies!

Macro Definition Documentation

#define CHAR_BIT   8

Description: Number of bits to represent type char.

Include: <limits.h>

Value: 8

#define CHAR_MAX   SCHAR_MAX

Description: Maximum value of a char.

Include: <limits.h>

Value: 127

#define CHAR_MIN   SCHAR_MIN

Description: Minimum value of a char.

Include: <limits.h>

Value: -128

#define INT_MAX   SHRT_MAX

Description: Maximum value of an int.

Include: <limits.h>

Value: 32767

#define INT_MIN   SHRT_MIN

Description: Minimum value of an int.

Include: <limits.h>

Value: -32768

#define LLONG_MAX   0x7fffffffffffffffLL

Description: Maximum value of a long long int.

Include: <limits.h>

Value: 9223372036854775807

#define LLONG_MIN   (-LLONG_MAX -1)

Description: Minimum value of a long long int.

Include: <limits.h>

Value: -9223372036854775808

#define LONG_MAX   0x7fffffff

Description: Maximum value of a long int.

Include: <limits.h>

Value: 2147483647

#define LONG_MIN   (-LONG_MAX -1)

Description: Minimum value of a long int.

Include: <limits.h>

Value: -2147483648

#define MB_LEN_MAX   1

Description: Maximum number of bytes in a multibyte character.

Include: <limits.h>

Value: 1

#define SCHAR_MAX   0x7f

Description: Maximum value of a signed char.

Include: <limits.h>

Value: 127

#define SCHAR_MIN   (-SCHAR_MAX -1)

Description: Minimum value of a signed char.

Include: <limits.h>

Value: -128

#define SHRT_MAX   0x7fff

Description: Maximum value of a short int.

Include: <limits.h>

Value: 32767

#define SHRT_MIN   (-SHRT_MAX -1)

Description: Minimum value of a short int.

Include: <limits.h>

Value: -32768

#define UCHAR_MAX   0xff

Description: Maximum value of an unsigned char.

Include: <limits.h>

Value: 255

#define UINT_MAX   USHRT_MAX

Description: Maximum value of an unsigned int.

Include: <limits.h>

Value: 65535

#define ULLONG_MAX   0xffffffffffffffffULL

Description: Maximum value of a long long unsigned int.

Include: <limits.h>

Value: 18446744073709551615

#define ULONG_MAX   0xffffffffU

Description: Maximum value of a long unsigned int.

Include: <limits.h>

Value: 4294967295

#define USHRT_MAX   0xffff

Description: Maximum value of an unsigned short int.

Include: <limits.h>

Value: 65535