?? glib-limits-of-basic-types.html
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Limits of Basic Types</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GLib Reference Manual"><link rel="up" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="prev" href="glib-Basic-Types.html" title="Basic Types"><link rel="next" href="glib-Standard-Macros.html" title="Standard Macros"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="glib.html" title="GLib Overview"><link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="chapter" href="glib-core.html" title="GLib Core Application Support"><link rel="chapter" href="glib-utilities.html" title="GLib Utilities"><link rel="chapter" href="glib-data-types.html" title="GLib Data Types"><link rel="chapter" href="tools.html" title="GLib Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"><link rel="index" href="ix06.html" title="Index of new symbols in 2.8"><link rel="index" href="ix07.html" title="Index of new symbols in 2.10"><link rel="index" href="ix08.html" title="Index of new symbols in 2.12"><link rel="index" href="ix09.html" title="Index of new symbols in 2.14"><link rel="index" href="ix10.html" title="Index of new symbols in 2.16"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="glib-Basic-Types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="glib-fundamentals.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GLib Reference Manual</th><td><a accesskey="n" href="glib-Standard-Macros.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id2826931" class="shortcut">Top</a>  |  <a href="#id2827183" class="shortcut">Description</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="glib-Limits-of-Basic-Types"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id2826931"></a><span class="refentrytitle">Limits of Basic Types</span></h2><p>Limits of Basic Types — portable method of determining the limits of the standard types</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include <glib.h>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT:CAPS">G_MININT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT:CAPS">G_MAXINT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT:CAPS">G_MAXUINT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSHORT:CAPS">G_MINSHORT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSHORT:CAPS">G_MAXSHORT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUSHORT:CAPS">G_MAXUSHORT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINLONG:CAPS">G_MINLONG</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXLONG:CAPS">G_MAXLONG</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXULONG:CAPS">G_MAXULONG</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT8:CAPS">G_MININT8</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT8:CAPS">G_MAXINT8</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT8:CAPS">G_MAXUINT8</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT16:CAPS">G_MININT16</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT16:CAPS">G_MAXINT16</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT16:CAPS">G_MAXUINT16</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT32:CAPS">G_MININT32</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT32:CAPS">G_MAXINT32</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT32:CAPS">G_MAXUINT32</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT64:CAPS">G_MININT64</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT64:CAPS">G_MAXINT64</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT64:CAPS">G_MAXUINT64</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSIZE:CAPS">G_MAXSIZE</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSSIZE:CAPS">G_MINSSIZE</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSSIZE:CAPS">G_MAXSSIZE</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINOFFSET:CAPS">G_MINOFFSET</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXOFFSET:CAPS">G_MAXOFFSET</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINFLOAT:CAPS">G_MINFLOAT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT:CAPS">G_MAXFLOAT</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINDOUBLE:CAPS">G_MINDOUBLE</a>#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE:CAPS">G_MAXDOUBLE</a></pre></div><div class="refsect1" lang="en"><a name="id2827183"></a><h2>Description</h2><p>These macros provide a portable method to determine the limits of some ofthe standard integer and floating point types.</p></div><div class="refsect1" lang="en"><a name="id2827199"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2827209"></a><h3><a name="G-MININT:CAPS"></a>G_MININT</h3><a class="indexterm" name="id2827222"></a><pre class="programlisting">#define G_MININT INT_MIN</pre><p>The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint"><span class="type">gint</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827245"></a><h3><a name="G-MAXINT:CAPS"></a>G_MAXINT</h3><a class="indexterm" name="id2827258"></a><pre class="programlisting">#define G_MAXINT INT_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint"><span class="type">gint</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827281"></a><h3><a name="G-MAXUINT:CAPS"></a>G_MAXUINT</h3><a class="indexterm" name="id2827294"></a><pre class="programlisting">#define G_MAXUINT UINT_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint"><span class="type">guint</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827317"></a><h3><a name="G-MINSHORT:CAPS"></a>G_MINSHORT</h3><a class="indexterm" name="id2827330"></a><pre class="programlisting">#define G_MINSHORT SHRT_MIN</pre><p>The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort"><span class="type">gshort</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827353"></a><h3><a name="G-MAXSHORT:CAPS"></a>G_MAXSHORT</h3><a class="indexterm" name="id2827366"></a><pre class="programlisting">#define G_MAXSHORT SHRT_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort"><span class="type">gshort</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827389"></a><h3><a name="G-MAXUSHORT:CAPS"></a>G_MAXUSHORT</h3><a class="indexterm" name="id2827402"></a><pre class="programlisting">#define G_MAXUSHORT USHRT_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gushort"><span class="type">gushort</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827426"></a><h3><a name="G-MINLONG:CAPS"></a>G_MINLONG</h3><a class="indexterm" name="id2827438"></a><pre class="programlisting">#define G_MINLONG LONG_MIN</pre><p>The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong"><span class="type">glong</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827462"></a><h3><a name="G-MAXLONG:CAPS"></a>G_MAXLONG</h3><a class="indexterm" name="id2827474"></a><pre class="programlisting">#define G_MAXLONG LONG_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong"><span class="type">glong</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827498"></a><h3><a name="G-MAXULONG:CAPS"></a>G_MAXULONG</h3><a class="indexterm" name="id2827510"></a><pre class="programlisting">#define G_MAXULONG ULONG_MAX</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gulong"><span class="type">gulong</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2827534"></a><h3><a name="G-MININT8:CAPS"></a>G_MININT8</h3><a class="indexterm" name="id2827548"></a><pre class="programlisting">#define G_MININT8 ((gint8) 0x80)</pre><p>The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8"><span class="type">gint8</span></a>.</p><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id2827579"></a><h3><a name="G-MAXINT8:CAPS"></a>G_MAXINT8</h3><a class="indexterm" name="id2827594"></a><pre class="programlisting">#define G_MAXINT8 ((gint8) 0x7f)</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8"><span class="type">gint8</span></a>.</p><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id2827624"></a><h3><a name="G-MAXUINT8:CAPS"></a>G_MAXUINT8</h3><a class="indexterm" name="id2827639"></a><pre class="programlisting">#define G_MAXUINT8 ((guint8) 0xff)</pre><p>The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint8"><span class="type">guint8</span></a>.</p><p class="since">Since 2.4
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -