GString in GLib



Does anyone mind if I add something like
g_string_newa(const gchar *init);

That will create the string and its contents on stack.
I just hate having to deallocate GString on all exit paths out of the 
function. And I would rather not use anything like C++ autoobject
(the project I'm modifying is written in C++).

Thank you.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]