Limits of Basic Types

Name

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_MINSHORT
#define     G_MAXSHORT

#define     G_MINLONG
#define     G_MAXLONG

#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	INT_MIN

The minimum value which can be held in a gint.


G_MAXINT

#define G_MAXINT	INT_MAX

The maximum value which can be held in a gint.


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_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_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.