General-purpose portable utility library for C, from the GNOME project
open sourceLGPL-2.1-or-laterfree
GLib is a general-purpose, portable utility library for C: data types, macros, type conversions, string and file utilities, a main loop abstraction, threads, process spawning, a testing framework and more. It ships with GObject, the base type system, and GIO, for I/O, networking and IPC, and it's the foundation GTK and much of the GNOME stack build on. The GLib Development Team makes it, with its source on GNOME's GitLab.
Ways to install
Package managers
Problems it solves
- I need hash tables, lists and string helpers in a C program without writing them myself
- an event loop and portable threads for a C application on Linux
- a cross-platform utility library to build a C library or GNOME app on
Features
- data structures, string and file utilities
- main event loop abstraction
- threads, process spawning and atomic operations
- testing framework
- GObject type system and GIO for I/O, networking and IPC
Alternatives
The same job
These do what GLib does.
- stb Single-file public domain libraries for C and C++