Why use GLib functions?

后端 未结 7 596
野的像风
野的像风 2021-01-31 17:30

While programming in C and GTK+, why is it \"better\" to use g_strdup_printf, g_free, g_strcmp0 etc... and fellow GLib functions?

7条回答
  •  忘了有多久
    2021-01-31 18:01

    Their behavior is well-defined on any platform that GTK+ supports, as opposed to the native functions which may perhaps sometimes partway work.

提交回复
热议问题