IBM developerWorks: The wonders of glib - Making C programming easier | Linux Today

IBM developerWorks: The wonders of glib – Making C programming easier

Written By
Web Webster
Web Webster
Apr 23, 2000

“Glib is a utility library for C that makes programming in C
much more enjoyable. There are and always have been other such
libraries, but none so popular and so well focused, so consistent
and full of features. Before learning about glib through GTK+/GNOME
I relied primarily on C. And, being a C programmer, I was jealous
of languages such as Perl and C++ with STL and their nice
containers and consistent data storage functionality. The C
standard library unfortunately has a large number of inconsistent
and low-level functions that work differently on different
platforms or are implemented only on certain platforms….”

Glib’s most prominent and powerful aspect is its
containers, although it is also extremely useful in writing
portable code. Glib does not require you to restrict code to small
subsets of functionality that work on all target platforms, nor,
when you use glib, do you find yourself resorting to prayer as a
method of ensuring satisfactory implementation of your functions on
other platforms.
It also provides utility functions more
consistent than the standard C library, though designed in a
similar spirit. Beyond all this, Glib touts the more exotic
features of a simple lexical analyzer and a main loop functionality
for event-driven applications.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.