Glib
Glib is an underlying library that provides many useful definitions and functions when creating gdk and GTK applications. They include definitions of basic types and restrictions, standard macros, type conversion, byte order, storage allocation, warnings and assertions, message records, timers, string utilities) hook function, a syntax scanner, dynamic loading module, and automatic string completion. It also defines many data structures (and their corresponding operations ), including storage block, two-way linked list, one-way linked list, hash table, string (dynamic growth), string block (string group), array (size can increase with the addition of elements), balanced binary tree, N-tree, and Quark (Quark, a two-way association between a string and its unique integer identifier) key data list (list of data elements that can be accessed by a string or integer), relationship and metadata group (data tables that can be indexed by any location number), and cache ).
The following summarizes some functions of the glib library functions, which do not include all functions, data structures, or operations. For more complete information about the glib library, see the glib documentation. You can get from http://www.gtk.org.
If you are using another language, you should check the documents bound to the language. Sometimes the language may already have the same functions, and sometimes it may not.
Definition
The definitions of extreme values of many standard types are:
G_minfloat
G_maxfloat
G_mindouble
G_maxdouble
G_minshort
G_maxshort
G_minint
G_maxint
G_minlong
G_maxlong
The following typedefs is also defined. The remaining undefined items are dynamically set based on the hardware platform. Remember not to calculate the pointer size if you want to make the program portable. A pointer is 8 bytes in Alpha, and 4 bytes in Intel 80x86 series CPU.
Char gchar;
Short gshort;
Long glong;
Int Gint;
Char gboolean;
Unsigned char guchar;
Unsigned short gushort;
Unsigned long Gulong;
Unsigned int guint;
Float gfloat;
Double gdouble;
Long Double gldouble;
Void * gpointer;
Gint8
Guint8
Gint16
Guint16
Gint32
Guint32
<Previushomenext>
Function two-way linked list