Giacomo A. Catenazzi wrote: > >>Case 2: > >> char *foo = g_strdup_printf ("%s equals %i", somestring, > >> someint); > > > >>Pick your choice. > > > >Case 1, please. Either case 2 fails to handle the allocation error, or glib > >is doing its own abort. Neither is acceptable. > > > > and BTW the function seems not documented (I don't find the relevant > manpage).
FWIW glib and GTK+, the whole GNOME stack, and more, are using gtk-doc to document their API, you will find the generated documentation in HTML form in libglib2.0-doc. And there is http://bugzilla.gnome.org/show_bug.cgi?id=467488 where the generation of manpages is discussed. Frederic -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org