36
37
<th width="100%" align="center">GLib Reference Manual</th>
37
38
<td><a accesskey="n" href="glib-Standard-Macros.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
39
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2883390" class="shortcut">Top</a>
41
<a href="#id2883642" class="shortcut">Description</a></nobr></td></tr>
40
<tr><td colspan="5" class="shortcuts">
41
<a href="#glib-Limits-of-Basic-Types.synopsis" class="shortcut">Top</a>
43
<a href="#glib-Limits-of-Basic-Types.description" class="shortcut">Description</a>
43
46
<div class="refentry" lang="en">
44
47
<a name="glib-Limits-of-Basic-Types"></a><div class="titlepage"></div>
45
48
<div class="refnamediv"><table width="100%"><tr>
48
<a name="id2883390"></a><span class="refentrytitle">Limits of Basic Types</span>
50
<p>Limits of Basic Types — portable method of determining the limits of the standard types</p>
50
<h2><span class="refentrytitle"><a name="glib-Limits-of-Basic-Types.top_of_page"></a>Limits of Basic Types</span></h2>
51
<p>Limits of Basic Types — portable method of determining the limits of the standard types</p>
52
53
<td valign="top" align="right"></td>
53
54
</tr></table></div>
54
55
<div class="refsynopsisdiv">
56
<a name="glib-Limits-of-Basic-Types.synopsis"></a><h2>Synopsis</h2>
56
57
<pre class="synopsis">
58
59
#include <glib.h>
61
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT:CAPS">G_MININT</a>
62
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT:CAPS">G_MAXINT</a>
63
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT:CAPS">G_MAXUINT</a>
65
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSHORT:CAPS">G_MINSHORT</a>
66
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSHORT:CAPS">G_MAXSHORT</a>
67
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUSHORT:CAPS">G_MAXUSHORT</a>
69
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINLONG:CAPS">G_MINLONG</a>
70
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXLONG:CAPS">G_MAXLONG</a>
71
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXULONG:CAPS">G_MAXULONG</a>
73
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT8:CAPS">G_MININT8</a>
74
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT8:CAPS">G_MAXINT8</a>
75
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT8:CAPS">G_MAXUINT8</a>
77
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT16:CAPS">G_MININT16</a>
78
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT16:CAPS">G_MAXINT16</a>
79
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT16:CAPS">G_MAXUINT16</a>
81
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT32:CAPS">G_MININT32</a>
82
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT32:CAPS">G_MAXINT32</a>
83
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT32:CAPS">G_MAXUINT32</a>
85
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT64:CAPS">G_MININT64</a>
86
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT64:CAPS">G_MAXINT64</a>
87
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT64:CAPS">G_MAXUINT64</a>
89
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSIZE:CAPS">G_MAXSIZE</a>
90
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSSIZE:CAPS">G_MINSSIZE</a>
91
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSSIZE:CAPS">G_MAXSSIZE</a>
93
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINOFFSET:CAPS">G_MINOFFSET</a>
94
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXOFFSET:CAPS">G_MAXOFFSET</a>
96
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINFLOAT:CAPS">G_MINFLOAT</a>
97
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT:CAPS">G_MAXFLOAT</a>
99
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINDOUBLE:CAPS">G_MINDOUBLE</a>
100
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE:CAPS">G_MAXDOUBLE</a>
61
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT--CAPS" title="G_MININT">G_MININT</a>
62
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT--CAPS" title="G_MAXINT">G_MAXINT</a>
63
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT--CAPS" title="G_MAXUINT">G_MAXUINT</a>
65
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSHORT--CAPS" title="G_MINSHORT">G_MINSHORT</a>
66
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSHORT--CAPS" title="G_MAXSHORT">G_MAXSHORT</a>
67
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUSHORT--CAPS" title="G_MAXUSHORT">G_MAXUSHORT</a>
69
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINLONG--CAPS" title="G_MINLONG">G_MINLONG</a>
70
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXLONG--CAPS" title="G_MAXLONG">G_MAXLONG</a>
71
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXULONG--CAPS" title="G_MAXULONG">G_MAXULONG</a>
73
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT8--CAPS" title="G_MININT8">G_MININT8</a>
74
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT8--CAPS" title="G_MAXINT8">G_MAXINT8</a>
75
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT8--CAPS" title="G_MAXUINT8">G_MAXUINT8</a>
77
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT16--CAPS" title="G_MININT16">G_MININT16</a>
78
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT16--CAPS" title="G_MAXINT16">G_MAXINT16</a>
79
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT16--CAPS" title="G_MAXUINT16">G_MAXUINT16</a>
81
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT32--CAPS" title="G_MININT32">G_MININT32</a>
82
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT32--CAPS" title="G_MAXINT32">G_MAXINT32</a>
83
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT32--CAPS" title="G_MAXUINT32">G_MAXUINT32</a>
85
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT64--CAPS" title="G_MININT64">G_MININT64</a>
86
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT64--CAPS" title="G_MAXINT64">G_MAXINT64</a>
87
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT64--CAPS" title="G_MAXUINT64">G_MAXUINT64</a>
89
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSIZE--CAPS" title="G_MAXSIZE">G_MAXSIZE</a>
90
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSSIZE--CAPS" title="G_MINSSIZE">G_MINSSIZE</a>
91
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSSIZE--CAPS" title="G_MAXSSIZE">G_MAXSSIZE</a>
93
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINOFFSET--CAPS" title="G_MINOFFSET">G_MINOFFSET</a>
94
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXOFFSET--CAPS" title="G_MAXOFFSET">G_MAXOFFSET</a>
96
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINFLOAT--CAPS" title="G_MINFLOAT">G_MINFLOAT</a>
97
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT--CAPS" title="G_MAXFLOAT">G_MAXFLOAT</a>
99
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINDOUBLE--CAPS" title="G_MINDOUBLE">G_MINDOUBLE</a>
100
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE--CAPS" title="G_MAXDOUBLE">G_MAXDOUBLE</a>
103
103
<div class="refsect1" lang="en">
104
<a name="id2883642"></a><h2>Description</h2>
104
<a name="glib-Limits-of-Basic-Types.description"></a><h2>Description</h2>
106
106
These macros provide a portable method to determine the limits of some of
107
107
the standard integer and floating point types.
110
110
<div class="refsect1" lang="en">
111
<a name="id2883658"></a><h2>Details</h2>
112
<div class="refsect2" lang="en">
113
<a name="id2883668"></a><h3>
114
<a name="G-MININT:CAPS"></a>G_MININT</h3>
115
<a class="indexterm" name="id2883681"></a><pre class="programlisting">#define G_MININT INT_MIN
118
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint"><span class="type">gint</span></a>.
122
<div class="refsect2" lang="en">
123
<a name="id2883704"></a><h3>
124
<a name="G-MAXINT:CAPS"></a>G_MAXINT</h3>
125
<a class="indexterm" name="id2883717"></a><pre class="programlisting">#define G_MAXINT INT_MAX
128
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint"><span class="type">gint</span></a>.
132
<div class="refsect2" lang="en">
133
<a name="id2883740"></a><h3>
134
<a name="G-MAXUINT:CAPS"></a>G_MAXUINT</h3>
135
<a class="indexterm" name="id2883753"></a><pre class="programlisting">#define G_MAXUINT UINT_MAX
138
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint"><span class="type">guint</span></a>.
142
<div class="refsect2" lang="en">
143
<a name="id2883776"></a><h3>
144
<a name="G-MINSHORT:CAPS"></a>G_MINSHORT</h3>
145
<a class="indexterm" name="id2883789"></a><pre class="programlisting">#define G_MINSHORT SHRT_MIN
148
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort"><span class="type">gshort</span></a>.
152
<div class="refsect2" lang="en">
153
<a name="id2883812"></a><h3>
154
<a name="G-MAXSHORT:CAPS"></a>G_MAXSHORT</h3>
155
<a class="indexterm" name="id2883825"></a><pre class="programlisting">#define G_MAXSHORT SHRT_MAX
158
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort"><span class="type">gshort</span></a>.
162
<div class="refsect2" lang="en">
163
<a name="id2883848"></a><h3>
164
<a name="G-MAXUSHORT:CAPS"></a>G_MAXUSHORT</h3>
165
<a class="indexterm" name="id2883861"></a><pre class="programlisting">#define G_MAXUSHORT USHRT_MAX
168
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gushort"><span class="type">gushort</span></a>.
172
<div class="refsect2" lang="en">
173
<a name="id2883885"></a><h3>
174
<a name="G-MINLONG:CAPS"></a>G_MINLONG</h3>
175
<a class="indexterm" name="id2883897"></a><pre class="programlisting">#define G_MINLONG LONG_MIN
178
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong"><span class="type">glong</span></a>.
182
<div class="refsect2" lang="en">
183
<a name="id2883921"></a><h3>
184
<a name="G-MAXLONG:CAPS"></a>G_MAXLONG</h3>
185
<a class="indexterm" name="id2883933"></a><pre class="programlisting">#define G_MAXLONG LONG_MAX
188
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong"><span class="type">glong</span></a>.
192
<div class="refsect2" lang="en">
193
<a name="id2883956"></a><h3>
194
<a name="G-MAXULONG:CAPS"></a>G_MAXULONG</h3>
195
<a class="indexterm" name="id2883969"></a><pre class="programlisting">#define G_MAXULONG ULONG_MAX
198
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gulong"><span class="type">gulong</span></a>.
202
<div class="refsect2" lang="en">
203
<a name="id2883992"></a><h3>
204
<a name="G-MININT8:CAPS"></a>G_MININT8</h3>
205
<a class="indexterm" name="id2884007"></a><pre class="programlisting">#define G_MININT8 ((gint8) 0x80)
208
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8"><span class="type">gint8</span></a>.
210
<p class="since">Since 2.4
216
<div class="refsect2" lang="en">
217
<a name="id2884038"></a><h3>
218
<a name="G-MAXINT8:CAPS"></a>G_MAXINT8</h3>
219
<a class="indexterm" name="id2884052"></a><pre class="programlisting">#define G_MAXINT8 ((gint8) 0x7f)
222
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8"><span class="type">gint8</span></a>.
224
<p class="since">Since 2.4
230
<div class="refsect2" lang="en">
231
<a name="id2884083"></a><h3>
232
<a name="G-MAXUINT8:CAPS"></a>G_MAXUINT8</h3>
233
<a class="indexterm" name="id2884098"></a><pre class="programlisting">#define G_MAXUINT8 ((guint8) 0xff)
236
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint8"><span class="type">guint8</span></a>.
238
<p class="since">Since 2.4
244
<div class="refsect2" lang="en">
245
<a name="id2884128"></a><h3>
246
<a name="G-MININT16:CAPS"></a>G_MININT16</h3>
247
<a class="indexterm" name="id2884143"></a><pre class="programlisting">#define G_MININT16 ((gint16) 0x8000)
250
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16"><span class="type">gint16</span></a>.
252
<p class="since">Since 2.4
258
<div class="refsect2" lang="en">
259
<a name="id2884173"></a><h3>
260
<a name="G-MAXINT16:CAPS"></a>G_MAXINT16</h3>
261
<a class="indexterm" name="id2884188"></a><pre class="programlisting">#define G_MAXINT16 ((gint16) 0x7fff)
264
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16"><span class="type">gint16</span></a>.
266
<p class="since">Since 2.4
272
<div class="refsect2" lang="en">
273
<a name="id2884218"></a><h3>
274
<a name="G-MAXUINT16:CAPS"></a>G_MAXUINT16</h3>
275
<a class="indexterm" name="id2884234"></a><pre class="programlisting">#define G_MAXUINT16 ((guint16) 0xffff)
278
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint16"><span class="type">guint16</span></a>.
280
<p class="since">Since 2.4
286
<div class="refsect2" lang="en">
287
<a name="id2884264"></a><h3>
288
<a name="G-MININT32:CAPS"></a>G_MININT32</h3>
289
<a class="indexterm" name="id2884279"></a><pre class="programlisting">#define G_MININT32 ((gint32) 0x80000000)
292
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32"><span class="type">gint32</span></a>.
294
<p class="since">Since 2.4
300
<div class="refsect2" lang="en">
301
<a name="id2884309"></a><h3>
302
<a name="G-MAXINT32:CAPS"></a>G_MAXINT32</h3>
303
<a class="indexterm" name="id2884324"></a><pre class="programlisting">#define G_MAXINT32 ((gint32) 0x7fffffff)
306
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32"><span class="type">gint32</span></a>.
308
<p class="since">Since 2.4
314
<div class="refsect2" lang="en">
315
<a name="id2884354"></a><h3>
316
<a name="G-MAXUINT32:CAPS"></a>G_MAXUINT32</h3>
317
<a class="indexterm" name="id2884369"></a><pre class="programlisting">#define G_MAXUINT32 ((guint32) 0xffffffff)
320
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint32"><span class="type">guint32</span></a>.
322
<p class="since">Since 2.4
328
<div class="refsect2" lang="en">
329
<a name="id2884399"></a><h3>
330
<a name="G-MININT64:CAPS"></a>G_MININT64</h3>
331
<a class="indexterm" name="id2884412"></a><pre class="programlisting">#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
334
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64"><span class="type">gint64</span></a>.
338
<div class="refsect2" lang="en">
339
<a name="id2884436"></a><h3>
340
<a name="G-MAXINT64:CAPS"></a>G_MAXINT64</h3>
341
<a class="indexterm" name="id2884449"></a><pre class="programlisting">#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
344
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64"><span class="type">gint64</span></a>.
348
<div class="refsect2" lang="en">
349
<a name="id2884472"></a><h3>
350
<a name="G-MAXUINT64:CAPS"></a>G_MAXUINT64</h3>
351
<a class="indexterm" name="id2884485"></a><pre class="programlisting">#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
354
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint64"><span class="type">guint64</span></a>.
358
<div class="refsect2" lang="en">
359
<a name="id2884509"></a><h3>
360
<a name="G-MAXSIZE:CAPS"></a>G_MAXSIZE</h3>
361
<a class="indexterm" name="id2884524"></a><pre class="programlisting">#define G_MAXSIZE G_MAXUINT
364
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gsize"><span class="type">gsize</span></a>.
366
<p class="since">Since 2.4
372
<div class="refsect2" lang="en">
373
<a name="id2884554"></a><h3>
374
<a name="G-MINSSIZE:CAPS"></a>G_MINSSIZE</h3>
375
<a class="indexterm" name="id2884569"></a><pre class="programlisting">#define G_MINSSIZE G_MININT
378
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize"><span class="type">gssize</span></a>.
380
<p class="since">Since 2.14
386
<div class="refsect2" lang="en">
387
<a name="id2884599"></a><h3>
388
<a name="G-MAXSSIZE:CAPS"></a>G_MAXSSIZE</h3>
389
<a class="indexterm" name="id2884614"></a><pre class="programlisting">#define G_MAXSSIZE G_MAXINT
392
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize"><span class="type">gssize</span></a>.
394
<p class="since">Since 2.14
400
<div class="refsect2" lang="en">
401
<a name="id2884645"></a><h3>
402
<a name="G-MINOFFSET:CAPS"></a>G_MINOFFSET</h3>
403
<a class="indexterm" name="id2884658"></a><pre class="programlisting">#define G_MINOFFSET G_MININT64
406
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset"><span class="type">goffset</span></a>.
410
<div class="refsect2" lang="en">
411
<a name="id2884681"></a><h3>
412
<a name="G-MAXOFFSET:CAPS"></a>G_MAXOFFSET</h3>
413
<a class="indexterm" name="id2884694"></a><pre class="programlisting">#define G_MAXOFFSET G_MAXINT64
416
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset"><span class="type">goffset</span></a>.
420
<div class="refsect2" lang="en">
421
<a name="id2884717"></a><h3>
422
<a name="G-MINFLOAT:CAPS"></a>G_MINFLOAT</h3>
423
<a class="indexterm" name="id2884730"></a><pre class="programlisting">#define G_MINFLOAT FLT_MIN
426
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>.
429
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>,
111
<a name="glib-Limits-of-Basic-Types.details"></a><h2>Details</h2>
112
<div class="refsect2" lang="en">
113
<a name="G-MININT--CAPS"></a><h3>G_MININT</h3>
114
<pre class="programlisting">#define G_MININT INT_MIN
117
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a>.
121
<div class="refsect2" lang="en">
122
<a name="G-MAXINT--CAPS"></a><h3>G_MAXINT</h3>
123
<pre class="programlisting">#define G_MAXINT INT_MAX
126
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a>.
130
<div class="refsect2" lang="en">
131
<a name="G-MAXUINT--CAPS"></a><h3>G_MAXUINT</h3>
132
<pre class="programlisting">#define G_MAXUINT UINT_MAX
135
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a>.
139
<div class="refsect2" lang="en">
140
<a name="G-MINSHORT--CAPS"></a><h3>G_MINSHORT</h3>
141
<pre class="programlisting">#define G_MINSHORT SHRT_MIN
144
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort" title="gshort"><span class="type">gshort</span></a>.
148
<div class="refsect2" lang="en">
149
<a name="G-MAXSHORT--CAPS"></a><h3>G_MAXSHORT</h3>
150
<pre class="programlisting">#define G_MAXSHORT SHRT_MAX
153
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort" title="gshort"><span class="type">gshort</span></a>.
157
<div class="refsect2" lang="en">
158
<a name="G-MAXUSHORT--CAPS"></a><h3>G_MAXUSHORT</h3>
159
<pre class="programlisting">#define G_MAXUSHORT USHRT_MAX
162
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gushort" title="gushort"><span class="type">gushort</span></a>.
166
<div class="refsect2" lang="en">
167
<a name="G-MINLONG--CAPS"></a><h3>G_MINLONG</h3>
168
<pre class="programlisting">#define G_MINLONG LONG_MIN
171
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a>.
175
<div class="refsect2" lang="en">
176
<a name="G-MAXLONG--CAPS"></a><h3>G_MAXLONG</h3>
177
<pre class="programlisting">#define G_MAXLONG LONG_MAX
180
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a>.
184
<div class="refsect2" lang="en">
185
<a name="G-MAXULONG--CAPS"></a><h3>G_MAXULONG</h3>
186
<pre class="programlisting">#define G_MAXULONG ULONG_MAX
189
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a>.
193
<div class="refsect2" lang="en">
194
<a name="G-MININT8--CAPS"></a><h3>G_MININT8</h3>
195
<pre class="programlisting">#define G_MININT8 ((gint8) 0x80)
198
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8" title="gint8"><span class="type">gint8</span></a>.
200
<p class="since">Since 2.4</p>
203
<div class="refsect2" lang="en">
204
<a name="G-MAXINT8--CAPS"></a><h3>G_MAXINT8</h3>
205
<pre class="programlisting">#define G_MAXINT8 ((gint8) 0x7f)
208
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8" title="gint8"><span class="type">gint8</span></a>.
210
<p class="since">Since 2.4</p>
213
<div class="refsect2" lang="en">
214
<a name="G-MAXUINT8--CAPS"></a><h3>G_MAXUINT8</h3>
215
<pre class="programlisting">#define G_MAXUINT8 ((guint8) 0xff)
218
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="type">guint8</span></a>.
220
<p class="since">Since 2.4</p>
223
<div class="refsect2" lang="en">
224
<a name="G-MININT16--CAPS"></a><h3>G_MININT16</h3>
225
<pre class="programlisting">#define G_MININT16 ((gint16) 0x8000)
228
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16" title="gint16"><span class="type">gint16</span></a>.
230
<p class="since">Since 2.4</p>
233
<div class="refsect2" lang="en">
234
<a name="G-MAXINT16--CAPS"></a><h3>G_MAXINT16</h3>
235
<pre class="programlisting">#define G_MAXINT16 ((gint16) 0x7fff)
238
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16" title="gint16"><span class="type">gint16</span></a>.
240
<p class="since">Since 2.4</p>
243
<div class="refsect2" lang="en">
244
<a name="G-MAXUINT16--CAPS"></a><h3>G_MAXUINT16</h3>
245
<pre class="programlisting">#define G_MAXUINT16 ((guint16) 0xffff)
248
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint16" title="guint16"><span class="type">guint16</span></a>.
250
<p class="since">Since 2.4</p>
253
<div class="refsect2" lang="en">
254
<a name="G-MININT32--CAPS"></a><h3>G_MININT32</h3>
255
<pre class="programlisting">#define G_MININT32 ((gint32) 0x80000000)
258
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32" title="gint32"><span class="type">gint32</span></a>.
260
<p class="since">Since 2.4</p>
263
<div class="refsect2" lang="en">
264
<a name="G-MAXINT32--CAPS"></a><h3>G_MAXINT32</h3>
265
<pre class="programlisting">#define G_MAXINT32 ((gint32) 0x7fffffff)
268
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32" title="gint32"><span class="type">gint32</span></a>.
270
<p class="since">Since 2.4</p>
273
<div class="refsect2" lang="en">
274
<a name="G-MAXUINT32--CAPS"></a><h3>G_MAXUINT32</h3>
275
<pre class="programlisting">#define G_MAXUINT32 ((guint32) 0xffffffff)
278
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a>.
280
<p class="since">Since 2.4</p>
283
<div class="refsect2" lang="en">
284
<a name="G-MININT64--CAPS"></a><h3>G_MININT64</h3>
285
<pre class="programlisting">#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
288
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a>.
292
<div class="refsect2" lang="en">
293
<a name="G-MAXINT64--CAPS"></a><h3>G_MAXINT64</h3>
294
<pre class="programlisting">#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
297
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a>.
301
<div class="refsect2" lang="en">
302
<a name="G-MAXUINT64--CAPS"></a><h3>G_MAXUINT64</h3>
303
<pre class="programlisting">#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
306
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint64" title="guint64 ()"><span class="type">guint64</span></a>.
310
<div class="refsect2" lang="en">
311
<a name="G-MAXSIZE--CAPS"></a><h3>G_MAXSIZE</h3>
312
<pre class="programlisting">#define G_MAXSIZE G_MAXUINT
315
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a>.
317
<p class="since">Since 2.4</p>
320
<div class="refsect2" lang="en">
321
<a name="G-MINSSIZE--CAPS"></a><h3>G_MINSSIZE</h3>
322
<pre class="programlisting">#define G_MINSSIZE G_MININT
325
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a>.
327
<p class="since">Since 2.14</p>
330
<div class="refsect2" lang="en">
331
<a name="G-MAXSSIZE--CAPS"></a><h3>G_MAXSSIZE</h3>
332
<pre class="programlisting">#define G_MAXSSIZE G_MAXINT
335
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a>.
337
<p class="since">Since 2.14</p>
340
<div class="refsect2" lang="en">
341
<a name="G-MINOFFSET--CAPS"></a><h3>G_MINOFFSET</h3>
342
<pre class="programlisting">#define G_MINOFFSET G_MININT64
345
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a>.
349
<div class="refsect2" lang="en">
350
<a name="G-MAXOFFSET--CAPS"></a><h3>G_MAXOFFSET</h3>
351
<pre class="programlisting">#define G_MAXOFFSET G_MAXINT64
354
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a>.
358
<div class="refsect2" lang="en">
359
<a name="G-MINFLOAT--CAPS"></a><h3>G_MINFLOAT</h3>
360
<pre class="programlisting">#define G_MINFLOAT FLT_MIN
363
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>.
366
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>,
430
367
use -G_MAX_FLOAT.
434
371
<div class="refsect2" lang="en">
435
<a name="id2884766"></a><h3>
436
<a name="G-MAXFLOAT:CAPS"></a>G_MAXFLOAT</h3>
437
<a class="indexterm" name="id2884779"></a><pre class="programlisting">#define G_MAXFLOAT FLT_MAX
372
<a name="G-MAXFLOAT--CAPS"></a><h3>G_MAXFLOAT</h3>
373
<pre class="programlisting">#define G_MAXFLOAT FLT_MAX
440
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>.
376
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>.
444
380
<div class="refsect2" lang="en">
445
<a name="id2884802"></a><h3>
446
<a name="G-MINDOUBLE:CAPS"></a>G_MINDOUBLE</h3>
447
<a class="indexterm" name="id2884815"></a><pre class="programlisting">#define G_MINDOUBLE DBL_MIN
381
<a name="G-MINDOUBLE--CAPS"></a><h3>G_MINDOUBLE</h3>
382
<pre class="programlisting">#define G_MINDOUBLE DBL_MIN
450
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>.
385
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>.
453
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>,
388
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>,
454
389
use -G_MAXDOUBLE.
458
393
<div class="refsect2" lang="en">
459
<a name="id2884851"></a><h3>
460
<a name="G-MAXDOUBLE:CAPS"></a>G_MAXDOUBLE</h3>
461
<a class="indexterm" name="id2884864"></a><pre class="programlisting">#define G_MAXDOUBLE DBL_MAX
394
<a name="G-MAXDOUBLE--CAPS"></a><h3>G_MAXDOUBLE</h3>
395
<pre class="programlisting">#define G_MAXDOUBLE DBL_MAX
464
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>.
398
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>.
468
<div class="refsect1" lang="en">
469
<a name="id2884889"></a><div class="refsect2" lang="en"><a name="id2884890"></a></div>
471
<div class="refsect2" lang="en"><a name="id2884891"></a></div>
405
Generated by GTK-Doc V1.11</div>