G_strdup_printf in glibmm?

Is API implemented or I can’t find the headers to include

#include <glib.h> should do the trick.

Thanks but still not found notice for Glib::strdup_printf

No member named 'strdup_printf' in namespace 'Glib'

You have to use the C function, g_strdup_printf()

So it is not implemented in glibmm, not my mistake?

Sorry, I take that back. There is Glib::ustring::sprintf() (glibmm: Glib::ustring Class Reference). I always forget about ustring -.-

1 Like

Thanks much, now it work!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.