Why use GLib functions?
In general, GLib’s purpose is a utility and portability library. Those in itself are reasons to consider using it. The specific functions you mention all offer something extra on top of their C standard library variants: g_strdup_printf is like sprintf, but actually allocates the buffer for you and saves you the guesswork of how large … Read more