Name
Limits of Basic Types -- portable method of determining the limits of the standard types.
Description
These macros provide a portable method to determine the limits of some of
the standard integer and floating point types.
Details
G_MININT
The minimum value which can be held in a gint.
G_MAXINT
The maximum value which can be held in a gint.
G_MAXUINT
#define G_MAXUINT UINT_MAX
|
The maximum value which can be held in a guint.
G_MINSHORT
#define G_MINSHORT SHRT_MIN
|
The minimum value which can be held in a gshort.
G_MAXSHORT
#define G_MAXSHORT SHRT_MAX
|
The maximum value which can be held in a gshort.
G_MAXUSHORT
#define G_MAXUSHORT USHRT_MAX
|
The maximum value which can be held in a gushort.
G_MINLONG
#define G_MINLONG LONG_MIN
|
The minimum value which can be held in a glong.
G_MAXLONG
#define G_MAXLONG LONG_MAX
|
The maximum value which can be held in a glong.
G_MAXULONG
#define G_MAXULONG ULONG_MAX
|
The maximum value which can be held in a gulong.
G_MININT64
#define G_MININT64 ((gint64) 0x8000000000000000)
|
The minimum value which can be held in a gint64.
G_MAXINT64
#define G_MAXINT64 ((gint64) 0x7fffffffffffffff)
|
The maximum value which can be held in a gint64.
G_MAXUINT64
#define G_MAXUINT64 ((guint64) 0xffffffffffffffff)
|
The maximum value which can be held in a guint64.
G_MINFLOAT
#define G_MINFLOAT FLT_MIN
|
The minimum value which can be held in a gfloat.
G_MAXFLOAT
#define G_MAXFLOAT FLT_MAX
|
The maximum value which can be held in a gfloat.
G_MINDOUBLE
#define G_MINDOUBLE DBL_MIN
|
The minimum value which can be held in a gdouble.
G_MAXDOUBLE
#define G_MAXDOUBLE DBL_MAX
|
The maximum value which can be held in a gdouble.