Limits of Basic Types

Limits of Basic Types — portable method of determining the limits of the standard types.

Synopsis


#include <glib.h>


#define     G_MININT
#define     G_MAXINT
#define     G_MAXUINT

#define     G_MINSHORT
#define     G_MAXSHORT
#define     G_MAXUSHORT

#define     G_MINLONG
#define     G_MAXLONG
#define     G_MAXULONG

#define     G_MININT64
#define     G_MAXINT64
#define     G_MAXUINT64

#define     G_MINFLOAT
#define     G_MAXFLOAT

#define     G_MINDOUBLE
#define     G_MAXDOUBLE

Description

These macros provide a portable method to determine the limits of some of the standard integer and floating point types.

Details

G_MININT

#define     G_MININT

The minimum value which can be held in a gint.


G_MAXINT

#define     G_MAXINT

The maximum value which can be held in a gint.


G_MAXUINT

#define     G_MAXUINT

The maximum value which can be held in a guint.


G_MINSHORT

#define     G_MINSHORT

The minimum value which can be held in a gshort.


G_MAXSHORT

#define     G_MAXSHORT

The maximum value which can be held in a gshort.


G_MAXUSHORT

#define     G_MAXUSHORT

The maximum value which can be held in a gushort.


G_MINLONG

#define     G_MINLONG

The minimum value which can be held in a glong.


G_MAXLONG

#define     G_MAXLONG

The maximum value which can be held in a glong.


G_MAXULONG

#define     G_MAXULONG

The maximum value which can be held in a gulong.


G_MININT64

#define     G_MININT64

The minimum value which can be held in a gint64.


G_MAXINT64

#define     G_MAXINT64

The maximum value which can be held in a gint64.


G_MAXUINT64

#define     G_MAXUINT64

The maximum value which can be held in a guint64.


G_MINFLOAT

#define     G_MINFLOAT

The minimum value which can be held in a gfloat.


G_MAXFLOAT

#define     G_MAXFLOAT

The maximum value which can be held in a gfloat.


G_MINDOUBLE

#define     G_MINDOUBLE

The minimum value which can be held in a gdouble.


G_MAXDOUBLE

#define     G_MAXDOUBLE

The maximum value which can be held in a gdouble.