glib question: static GStrings?



dear all,

i'd like to use a static GString to keep a string "around" for when the
function gets called again.  the trouble is, the necessary call to
g_string_new() reinitializes the value of the GString.

one answer would be to make the GString global, but that's a wanky solution.
there has to be something better.

any ideas?

thanks!
pete

-- 
"The following addresses had permanent fatal errors..."      p dirac org
                               -- Mailer Daemon              www.dirac.org/p




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